The HDF_DF24_GETINFO procedure retrieves information about the current 24-bit HDF image.
h = HDF_OPEN('myhdf.hdf') ; Open the file myhdf.hdf; .
HDF_DF24_GETINFO, 'myhdf.hdf', width, height, interlace
;
Return information about the 24-bit image.
HELP, width, height, interlace ;
Print information about the returned variables. If the image were 536 by 412 pixels, and scan-line interlaced, IDL would print:
WIDTH LONG = 536
HEIGHT LONG = 412
INTERLACE LONG = 1
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_DF24_GETIMAGE , HDF_DF24_LASTREF , HDF_DF24_NIMAGES , HDF_DF24_READREF , HDF_DF24_RESTART