HDF-EOS Metadata Reader (HMR) -- Unsupported

The HDF-EOS Metadata Reader is a tool that reads metadata from an HDF-EOS2 file and writes the metadata to an ASCII text file. Compared to HDF-EOS Metadata Updator (HEMU), this tool cannot replace or update metadata. This program accesses CoreMetadata, ArchiveMetadata, InventoryMetadata, CollectionMetadata, StructMetadata and ProductMetadata. This program does not support HDF-EOS5 files.

Building HMR from source code

This tool requires the HDF4external library, but does not require the HDF-EOS2 library. The HMR package includes Makefile, and the user may need to set IFLAG and LFLAG in this file according to the path to the HDF4 library. Also, the user may need to add the path to the szip library to LFLAG and -lsz flag to LIBFLAG if HDF4 is built with the szip library as follows:

Figure 1 Makefile
IFLAG=-I<hdf4_path>/include
LFLAG=-L<hdf4_path>/lib -L<szlib_path>/lib
LIBFLAG=-lmfhdf -ldf -ljpeg -lm -lz -lsz

Using HMR

This program is very simple to use. This program takes two command-line arguments; the first argument is the input HDF-EOS2 file name, and the second argument is the output file name.

Figure 2 Reading metadata from HDF-EOS2 file
hmr AMSR_E_L3_RainGrid_B05_200707.hdf AMSR_E_L3_RainGrid_B05_200707.hdf.output
This example shows that this program reads metadata from a real AMSR-E AE_RnGdexternal file from NSIDC and stores the contents of metadata at sample.hdf.output. Users can download the original HDF file here.


Last modified: 11/11/2020
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by Subcontract number 4400528183 under Raytheon Contract number NNG15HZ39C, funded by NASA / Maintained by The HDF Group