My data

My data in HDF5 My data in HDF My data in netCDF
Saving my data in HDF5 format

This page presents a tutorial of how to save data in the HDF5 format. The example programs, together with sample files and a Visual C++ project file are available for download.

 
file description
DataProject.zip C programs that save netCDF and HDF5 files

 

This example shows how to convert data from a real database available to the scientific community, the Mediterranean Oceanic Data Base(MODB).

This C program, modb2hdf5.c reads a file in MODB format (an ASCII text file) and saves it in HDF5 format. The MODB data contains measurements of salinity and temperature for 34 layers in the Mediterranean Sea.

This image shows the HDF Explorer map of one of the layers. The fill values of the MODB file were transformed in HDF5 fill values and are showed in grey color in the image. The generated modb.h5 HDF5 file can also be opened online with HDF Explorer. These files, together with a project file and examples are available with the distribution of HDF Explorer. 

click for a larger image.

Other examples available in the project are

C file HDF5 file 
(click to open on HDF Explorer)
 
hdf5data.c hdf5data.h5 Creates several types of HDF5 data.The data includes all HDF5 dataset class types (float, integer, compound, bitfield, opaque, string, enumerated, variable length and array data)
hdf5images.c hdf5images.h5 Creates HDF5 images and palettes. The palettes are read from ASCII PAL files and attached to one 8bit image. Select the option Select Palette... on HDF explorer to choose the desired palette.

 


© 2000-2012 Space Research Software LLC | Contact Information | Home