Micro and Nano Mechanics Group
Revision as of 19:37, 3 February 2009 by Correaa (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install HDF5

[HDF5] is a library for managing large numerical data sets. It is appropriate for saving and retrieving data from large files. It also supports parallel access to files in HDF5 format, in particular within the MPI environment.

Some popular numerical packages, like MATLAB, Mathematica, Octave and ROOT, already have native support for HDF5 format. If you want to quickly experiment with HDF5 files, you can use those programs to see how it works.

For example, in Mathematica

 m = RandomInteger[255, {5, 5}]
 Export[ "matrix.h5", m]
 mLoad = Import["matrix.h5", {"Datasets", "/Dataset1"}]

will create a binary file called "matrix.h5" with the matrix data.