HDF
HDF (Hierarchical Data Format) is a multi-object file format that facilitates the transfer of various types of scientific data between machines and operating systems.
HDF5 is installed on : pople, bigben, and warhol.
HDF4 is installed on: pople and bigben.
All HDF routines require the header "hdf.h" to be included.
HDF5
On pople
Create a batch script to:
- Set up the module command
- load the HDF module for the version you want:
module load hdf5/1.6.3
or:module load hdf5-1.8.0
- Compile your C code, using h5cc:
h5cc code.c
See the sample job.
On bigben
Set up a batch script to:
- Load the hdf5 module:
module load hdf5/hdf5
- Compile with h5pfc for fortran, or h5pcc for C.
See the sample job.
On warhol
HDF5 code must be compiled on the login nodes on warhol. Before compiling, set up the correct environment with these module commands:
module unload openmpi_gcc module load icc module load ifort module load mvapich2_intel module load hdf5
Compile your C code with h5pcc, or a Fortran code with h5pfc.
Create a batch job which loads the hdf5 and ifort modules again and executes the program.
See the sample job.
HDF4
On pople
Create a batch script which:
- sets up the module command
- loads the HDF module:
module load hdf/4.2r3
- compiles your code using h4cc
h4cc code.c
See the sample job.
On bigben
Set up a batch script to:
- Load the hdf4 module:
module load hdf/4.2r1
- Compile with h4fc for fortran, or h4cc for C.
See the sample job.
Other HDF documentation:
- HDF5 home page
- HDF version 4 Documentation, which includes the Reference Manual, User's Guide and Specification & Developer's Guide.