The term scale is used to refer to the area between points on the axes. If these gaps are of equal size, a uniform scale is specified - for example, "1.0, 2.0, 3.0, . . . ". In an HDF file, scales may be omitted, but in a text file (as in the text file shown below) they must be included.
FIGURE 15a - The fp2hdf Utility
15.4.2 Command-Line Syntax
The syntax of fp2hdf is as follows.fp2hdf input-filename [-o output-filename] [-r] [-f] [-e | -i] horizontal-resolution vertical-resolution [-p palette-filename] [-m mean]
The input-filename parameter is the name of the file containing the unconverted data set in HDF format. If the format is text, see the discussion on the following page about how it must be organized.
The
-e
and the -i
flags cannot be used simultaneously. Either pixel interpolation or bilinear interpolation can be chosen for image expansion, but not both.-i
option is chosen, the expanded image must have dimensions that are greater than or equal to the dimensions of the original data set.number of rows number of columns
maximum value minimum value
scale for the vertical axis in an array
scale for the horizontal axis in an array
data-element-1 data-element-2 data-element-3
...
The arrays that contain the scale for the vertical and horizontal axes must have a size equal to the values specified in the number-of-rows and number-of-columns positions, respectively. The data elements are floating-point data and are assumed to be ordered by rows, left-to-right and top-to-bottom. 15.4.3 Examples
This is the fp2hdf command-line syntax used to convert floating-point data in the file named "infile1.txt" to the SDS format, and to store it as an SDS in the HDF output file "outfile1".fp2hdf infile1.txt -o outfile1
This fp2hdf command is used to convert floating-point data in the file named "infile2.txt" to an 8-bit raster image and store it in RIS8 format in the HDF output file named "outfile2".fp2hdf infile2 -o outfile2 -r
This fp2hdf command is used to convert floating-point data in the file named "infile3.txt" to the RIS8 and SDS formats and store both converted data groups in the HDF output file "outfile3".fp2hdf infile3.txt -o outfile3 -r -f
This fp2hdf command is used to convert floating-point data in the file named "infile4.txt" to a 500 x 600 raster image, storing the RIS8 in the HDF file "outfile4". This also stores the palette data read from the file name "palfile" with the image data.fp2hdf input4.txt -o outfile4 -r -e 500 600 -p palfile
This fp2hdf command is used to convert floating-point data in all files whose names begin with the letter "f" to 500 x 600 RIS8 images and store them in the output file "output5".fp2hdf f* -o outfile5 -r -i 500 600