h4toh5
is a command-line tool that can convert HDF4 file into HDF5 file.
It can also convert HDF-EOS2 file to netCDF-4 file because HDF-EOS2 is based on HDF4 and netCDF-4 is based on HDF5.
This page will highlight some information of converting HDF-EOS2 to netCDF-4. Check the links to the download, demo and other conversion tool pages at the end.
Please run configure
with --with-hdfeos2=/path/to/hdfeos2
as shown in Figure 1.
/usr/local
installation prefix. h4toh5
tool will be installed under /usr/local/bin/
as well.
If the --with-hdfeos2 option is used, the h4toh5 conversion utility will recognize the following additional command line arguments:
-eos
-nc4strict
You can type the following command to convert the HDF-EOS2 file "AR_RnGd.hdf" to a netCDF-4-compliant HDF5 file "AR_RnGd.nc" as shown in Figure 2.
An optional HDF-EOS2/netCDF-4 verifier utility is in the subdirectory misc/verify_eos2nc4/
can be found from the source distribution.
See the README.txt file in that directory.
The latest h4toh5 command-line utility, with the options (-eos -nc4strict)
that can convert HDF-EOS2 to netCDF-4, is tested with HDF4 V4.2.15,
HDF5 1.10.6, HDF-EOS2 2.20, and ncdump
from the netCDF 4.7.3 distribution
on the following platform and compiler: