HDF-EOS Metadata Updater (HEMU) -- Unsupported

The HDF-EOS Metadata Updater is a tool that extracts, replaces and updates metadata in an HDF-EOS file. This program accesses three kinds of metadata: CoreMetadata (InventoryMetadata), ArchiveMetadata and CollectionMetadata.

Building HEMU from source code

This program requires the HDF4external library and the HDF5external library. Although this program can access HDF-EOS files, the HDF-EOS2 library or the HDF-EOS5 library is not necessary to build this program.

The HEMU package contains a Makefile. The user needs to set HDF4 and HDF5 library paths as follows:

Figure 1 Makefile
HDFINC=<hdf4_path>/include
HDFLIB=<hdf4_path>/lib

HDF5INC=<hdf5_path>/include
HDF5LIB=<hdf5_path>/lib
Another modification may be necessary if either the HDF4 library or the HDF5 library was built with the SZIPexternal library; -lsz needs to be added to hemu rule.

If the HDF5 library is 1.8 or higher, the user may get compilation errors about the number of arguments, which can be avoided by adding -DH5_USE_16_API to CFLAGS.

Using HEMU

The package includes a text document readme_linux.txt. This text file explains how to use this program. The following is an example that extracts metadata from a real AMSR-E AE_RnGdexternal file from NSIDC. Users can download this file here.

Figure 2 Extracting metadata from HDF-EOS2 file
$ hemu AMSR_E_L3_RainGrid_B05_200707.hdf -x AMSR_E_L3_RainGrid_B05_200707.hdf.output
This will dump the following three attributes and save them into AMSR_E_L3_RainGrid_B05_200707.hdf.output. You can see a sample output from 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