HDF-EOS5 to netCDF-4 Converter

The HDF-EOS5 to netCDF-4 Converter is a tool that converts an HDF-EOS5 file to an equivalent netCDF-4external file. Unlike the HDF-EOS5 Augmentation Tool, this program creates a new file. This generated file is a netCDF-4 file; so, HDF-EOS5 cannot read it. ( Download)

Installation

This program requires two libraries.

Although the netCDF-4 library is not required to build this program, it is required to completely run the test suite included in the package.

configure script is included in the package. The paths to HDF5external and HDF-EOS5 should be passed to configure. One can also specify the path to netCDF-4 if one wants to run the test suite in the package. Specifying h5cc as CC is a good way to avoid linking problems.

Figure 1 Configure the package
$ ./configure \
CC=<hdf5_path>/bin/h5cc \
--with-hdf5=<hdf5_path> \
--with-hdfeos5=<hdfeos5_path> \
--with-netcdf4=<netcdf4_path>
The above command should succeed and generate Makefile. With Makefile, one can build this program by issuing make command. The generated binary is named eos52nc4.

Usage

This program takes exactly two arguments: input file name and output file name. Then, this program reads the input file, and creates the output file of the netCDF-4 format.

Limitation

Invisible HDF5 objects are not augmented

This program assumes that all HDF5 datasets are accessible via the HDF-EOS5 API. This limitation is caused by the fact that this program uses the HDF-EOS5 API to collect all information. If an HDF-EOS5 file contains an HDF5 dataset that cannot be accessed by the HDF-EOS5 API, this program does not have a chance to convert it, and the generate file will not contain any information about that dataset.

Download

Download the HDF-EOS5 to netCDF-4 Converter.


Last modified: 11/14/2011
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by NASA Cooperative Agreement Grant Number NNX08AO77A / Maintained by The HDF Group