Effective 12/31/2012, this tool is no longer supported by The HDF Group because users are encouraged to deepen their expertise with aug_eos5, which will be supported continuously.
The HDF-EOS5 to netCDF-4 Converter is a tool that converts an HDF-EOS5 file to an equivalent netCDF-4 file.
Unlike the HDF-EOS5 Augmentation Tool, this program creates a new netCDF4 file instead of modifying the existing HDF-EOS5 file. Unlike the augmented file that the HDF-EOS5 Augmentation Tool modified, the HDF-EOS5 library cannot access the converted file that this program created. The netCDF-4 library can access both the augmented file and the converted file.
Here is why the HDF-EOS5 library cannot access the converted file. This program doesn't convert the StructMetadata string dataset in the input HDF-EOS5 file because it maps the information in the StructMetadata to different datasets and attributes in the output file. Therefore, the HDF-EOS5 library cannot read the converted file any more because the HDF-EOS5 library always looks for the StructMetadata string dataset in an HDF5 file. ( Download)
This program requires two libraries.
configure
script is included in the package. The paths to the
HDF5
and HDF-EOS5 libraries should be
passed to
configure
. You can also specify the path to the netCDF-4 library if you want to run
the test suite in the package. Specifying h5cc as CC
is a good way to avoid
linking problems.
Makefile
.
With Makefile
, you can build this program by issuing make
command.
The generated binary is called eos52nc4
.
This program takes exactly two arguments: input file name and output file name. It reads the input file and creates the output file in netCDF-4 format.
This program assumes that the HDF-EOS5 library can access all HDF5 objects in the input file. If an HDF-EOS5 file contains an HDF5 object that the HDF-EOS5 library cannot access, this program does not convert it and the generated file will not contain any information about that object. This can happen when you add new objects into an HDF-EOS5 file using the HDF5 library instead of the HDF-EOS5 library. This limitation is due to the fact that this program uses the HDF-EOS5 library only to collect all information from the input file.
Download the HDF-EOS5 to netCDF-4 Converter.