Please see The HDF Group's new Support Portal for the latest information.
Examples of how to use HDF5 are provided below. For HDF-EOS specific examples, see the examples of how to access and visualize NASA HDF-EOS files using IDL, MATLAB, and NCL on the HDF-EOS Tools and Information Center page.
Contents:
Examples
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
How To Compile
For information on compiling in C, C++ and Fortran, see: Compiling Your HDF5 Applications
Briefly, on Unix platforms HDF5 provides the h5cc (C), h5c++ (C++), and h5fc (Fortran) 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.
Other Examples
IDL, MATLAB, and NCL Examples for HDF-EOS
Examples of how to access and visualize NASA HDF-EOS files using IDL, MATLAB,
and NCL.
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.
- - Last modified: 31 March 2017