Page tree
Skip to end of metadata
Go to start of metadata

HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.

For more details on HDF5 see the main HDF site at HDF Group.

Usage

To use the HDF5 package you must first set your paths using the module load command

module load hdf5/1.8.7

See our module documentation for more help on using modules.

This version has been built using gcc/g++ for C/C++ and either gfortran, or Intel ifort for the Fortran compilers. C code should work with the Intel icc compiler as well.

If hdf5 module loaded, the hdf5 /include and /lib directories are added to all environment variables specifying INCLUDE_PATH and LIBRARY_PATH. All you need is to link against the appropriate HDF5 libraries at the linking stage.

The compilation line in your makefile will look similar to:

C:
    gcc -o  .c -lhdf5 -lm 
FORTRAN:
    ifort -o  .f -lhdf5_fortran -lhdf5 -lm

Alternatively you can use the commands h5cc and h5fc that are added to your path when you load the module hdf5/1.8.7 

h5cc -help 
h5fc -help 

will give more information.

Addition Notes

Version 1.8.7, 1.8.10, 1.8.12, 1.8.13 and 1.8.14 are available with different options.