What are the HDF4 command line utilities?
the HDF command line utilities are application programs that can be executed by entering them at the command level, just like UNIX commands.
There are HDF utilities to:
- analyze and view HDF files ('hdp' being one of the more useful tools)
- convert from one format to another
- manipulate HDF files
They provide capabilities for doing things with HDF files for which you would normally have to write your own program.
The hdp
utility is one of the more useful HDF utilities. Following is a description of its function:
It provides quick information about the contents and data objects in an HDF file. It can list the contents of hdf files at various levels with different details. It can also dump the data of one or more objects in the file in binary or ASCII format.
The other utilities are:
gif2hdf
— converts GIF image into HDF GR image.hdf24to8
— converts a 24-bit image into an 8-bit imageh4cc
— compiles an HDF4 C programh4fc
— compiles an HDF4 F90 programh4redeploy
— Updates paths in h4cc/h4fc after the HDF4 pre-compiled binaries have been installed in a new locationhdf2gif
— converts HDF GR image into GIF image.hdf2jpeg
— converts hdf raster images to jpeg imageshdf8to24
— converts an 8-bit image into a 24-bit imagehdfcomp
— re-compresses an 8-bit raster hdf filehdfed
— hdf file editor - requires advanced knowledge of HDF.hdfimport
— imports ASCII or binary data into HDFhdfls
— lists basic information about an hdf filehdfpack
— compacts an hdf file by eliminating unused space that has been created due to file modifications.hdftopal
— extracts a palette from an hdf filehdftor8
— extracts 8-bit raster images and palettes from an hdf filehdfunpac
— unpacks an HDF file by exporting the scientific data elements (DFTAG_SD) to external object elementshdiff
— compares two HDF files and reports the differenceshrepack
— copies an HDF file to a new file with/without compression and/or chunkingjpeg2hdf
— converts jpeg images to hdf raster imagespaltohdf
— converts a raw palette to hdfr8tohdf
— converts 8-bit raster images to hdfristosds
— converts a raster image into an SDSvmake
— creates vsetsvshow
— dumps out vsets from an hdf file
In addition, the netCDF utilities, ncdump
and ncgen
, COMPILED with the HDF library, are included.