The HDF_DFR8_GETINFO procedure retrieves information about the current 8-bit HDF image.
h = HDF_OPEN('myhdf.hdf') ; Open the file myhdf.hdf; .
HDF_DFR8_GETINFO, 'myhdf.hdf', width, height, has_palette
;
Retrieve information about an image.
HELP, width, height, has_palette ; Print information about the returned variables.
HDF_CLOSE('myhdf.hdf') ; Close the HDF file.
For a more detailed example, see the file
hdf_info.pro
, located in the
examples
subdirectory of the main IDL directory.
HDF_DFR8_GETIMAGE , HDF_DFR8_NIMAGES , HDF_DFR8_READREF , HDF_DFR8_RESTART