HDF5 Examples| C | FORTRAN | MATLAB |
| C | Java | MATLAB |
(Note that the HDF5 1.8 examples for Fortran can be used with HDF5 1.6 without any changes.)
HDF5 Tutorial
Examples
Examples that come with the
HDF5 Tutorial.
Using Special Values
These examples show how to create special values in an HDF5 application.
C++
Examples
These C++ examples are provided with the HDF5 source code.
Miscellaneous Examples
These examples resulted from working with users, and are not fully tested.
Most of them are in C, with a few in Fortran and Java.
Introduction to
HDF5
The Introduction to HDF5 includes examples programs, although
they may not have been tested in a while.
h5py Example Code
Example program donated by a user that uses h5py (Python APIs).
C# User Contributed Examples (.NET)
Currently, this directory contains a C# example demonstrating how to
retrieve variable-length strings from an HDF5 file.
Sample HDF5 Programs and Files
This page contains links to sample programs and their corresponding HDF5 files for atomic and complex datatypes. It also contains links to HDF and HDF-EOS files that were converted to HDF5, as well as other HDF5 files.
Compiling Your Applications
HDF5 provides the h5cc (C), h5c++ (C++), and
h5fc (F90) scripts for compiling applications.