h4toh5 software consists of the h4toh5 and h5toh4 command-line utilities, as well as a
conversion library for converting between individual HDF4 and HDF5 objects. These follow the
HDF4 to HDF5 Mapping Specification.
-
h4toh5: Utility to convert an HDF4 file to HDF5, using the default mappings. Can also convert an HDF-EOS2 file to an HDF5 file that can be accessed by netCDF-4.
-
h5toh4: Utility to convert an HDF5 file to HDF4. (Not all objects can be converted, and it is NOT an inverse of h4toh5.)
-
h4toh5Conversion Library: Library to convert individual HDF4 objects into HDF5 objects.
PLEASE NOTE that although we continue to maintain HDF4, we do not plan on adding new features to HDF4, and recommend users move to HDF5 to take advantage of the improved features and performance of HDF5.
Download Information:
The h4toh5 conversion software can be obtained from the HDF
Downloads Page.
Documentation:
Differences between HDF4 and HDF5
HDF5 for HDF4 Users: A Short Guide (Dec. 2002)[pdf]
HDF4 and HDF5 Compatibility and Transition
Technical Reports
- - Last modified:February 17th 2012
Related Information
This paper reports tests of the h4toh5 utility using real NASA
data. The utility converted files, usually in less than one second
per file. These results show that conversion of HDF4 files to HDF5
is feasible for large collections or on demand.
In this experiment, the heconvert
utility is augmented using the h4toh5 Library. In addition to the standard
conversion of HDF-EOS objects, the experimental program identifies and
converts non-EOS objects in an EOS dataset, creating a more complete HDFEOS5
file. In conclusion, this experiment shows that the h4toh5 Library provides
a toolkit to more easily construct conversion utilities for NASA HDFEOS
files.
