For introductory examples, see the examples that come with the HDF5 Tutorial. Also see:
Introductory Examples | ||||
---|---|---|---|---|
|
See How To Compile (below) for information on compiling a C, C++ or Fortran application.
Examples By API | |||||
---|---|---|---|---|---|
|
* | DOWNLOAD compressed file of C & FORTRAN Examples by API |
** | See: Summary of HDF5 Capabilities in MATLAB. The MATLAB examples do NOT get tested regularly. |
Source Code Examples | |||||
---|---|---|---|---|---|
|
See How To Compile (below) for information on compiling a C, C++ or Fortran application.
For complete information on compiling, see: Compiling Your HDF5 Applications
Briefly, on Unix platforms HDF5 provides the h5cc (C), h5c++ (C++), and h5fc (F90) scripts for compiling an application. These scripts are included with the binary distribution of HDF5. With these scripts, there is no need to specify the paths to the library and include files used by HDF5, thus simplifying the steps to compile an application.
For compiling on Windows, see the Windows FAQs.
HDF5-1.6 Examples
Examples by API that were create for HDF5-1.6.
h5py Example Code
Example program donated by a user that uses h5py (Python APIs).
IDL, MATLAB, and NCL Examples for HDF-EOS
Examples of how to access and visualize NASA HDF-EOS files using IDL, MATLAB,
and NCL.
Introduction to
HDF5
The Introduction to HDF5 includes examples programs, although
they may not have been tested in a while.
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.
Using Special Values
These examples show how to create special values in an HDF5 application.