The heconvert is a command-line tool that converts an HDF-EOS2 file into an equivalent HDF-EOS5 file. This tool can convert all HDF-EOS2 objects: grid, swath and point.
Users can download either source code or precompiled binaries for Linux (32 bit), Mac, Mac (Intel) and SunOS 5.10
from their
web site
.
Under Intel-based Linux machine, the precompiled binary worked.
To build the binary from the source code, users need to install several libraries:
HDF4
,
HDF5
,
HDF-EOS2
and
HDF-EOS5
. The heconvert package does not use AutoConf/AutoMake,
therefore, the user must manually set several environment variables to provide paths
to those libraries. Refer to
Makefile for the list of required environment variables.
There was a syntax error in the top-level Makefile in HE2toHE5Covert_V2.0 on Linux platform. Makefile_linux in V2.0 requires adding $(HDF5LIB)/libhdf5_hl.a between HDFEOS5_LIB and HDF5LIB on the $(LIBS) line. These are known problems and will be addressed in a release due out by end of 2010.
This tool is simple to use. Basically, it takes an HDF-EOS2 file as the input and an HDF-EOS5 file for
the output. For example, the following command will convert input.he2 into
output.he5.
-c. For more information,
refer to their document
.
We have successfully tested HE2toHE5Covert Version 2.0 with HDF
grid and swath data files. For example, see:
swath data file
.