The HDF_BROWSER function presents a graphical user interface (GUI) which allows the user to view the contents of an Hierarchical Data Format (HDF) file, and prepare a template for the extraction of HDF data and metadata into IDL. The output template is an IDL structure that may be used when reading HDF files with the HDF_READ routine. If you have several HDF files of identical form, the returned template from HDF_BROWSER may be reused to extract data from these files with HDF_READ. If you do not need a multi-use template, you may call HDF_READ directly.
Set this keyword to a named variable that will contain the byte value 1 (one) if the user clicked the "Cancel" button or the byte value 0 (zero) otherwise.
When HDF_BROWSER reviews the contents of an HDF file, it creates default output names for the various data elements. By default these default names begin with a prefix derived from the filename. Set this keyword to a string value to be used in place of the default prefix.
The following options are available from the graphical user interface menus.
template = HDF_BROWSER('test.hdf')
output_structure = HDF_READ(TEMPLATE=template)
output_structure = HDF_READ('test.hdf', TEMPLATE=template)
NOTE: Vgroups and Vdata's are not currently supported. HDF files written with HDF4.1 or greater may not be readable with this browser. Because of a bug in HDF4.0r2, multiple use of HDF_BROWSER on files containing both DFR8 and DF24 images may cause the DFR8 and DF24 interfaces to become unusable. In these cases, HDF_BROWSER will improperly indicate that there are no DFR8 or DF24 images in the HDF file, and all access to these interfaces will fail for the duration of the IDL session. Restarting IDL will allow you to again use HDF_BROWSER to view the full contents of the HDF file.
HDF_READ , the IDL Scientific Data Formats Guide