HDF_DFR8_GETINFO procedure retrieves information about the current 8-bit HDF image.
Filename, Width, Height, Has_Palette
A string containing the name of the file to be read.
A named variable in which the width of the image is returned.
A named variable in which the height of the image is returned.
A named variable in which 1 is returned if a palette is present. Otherwise, 0 is returned.
h = HDF_OPEN('myhdf.hdf')
HDF_DFR8_GETINFO, 'myhdf.hdf', width, height, has_palette
HELP, width, height, has_palette
WIDTH LONG = 536
HEIGHT LONG = 412
HAS_PALETTE LONG = 1
For a more detailed example, see the file
, located in the
subdirectory of the main IDL directory.