Difference between revisions of "HDF5"

From GISAXS
Jump to: navigation, search
(Installation)
(Reading)
Line 5: Line 5:
  
 
==Reading==
 
==Reading==
In order to read HDF5 files, you will need a suitable library.
+
In order to read HDF5 files, you will need a suitable library. Here, we describe how to arrange to open compressed HDF5 files in a [[Python]] environment.
 
===Installation===
 
===Installation===
 
# Install dependencies
 
# Install dependencies

Revision as of 18:43, 4 August 2015

Hierarchical Data Format (HDF) is a portable binary format, meant to be extensible and self-describing.

Tools

  • hdfview

Reading

In order to read HDF5 files, you will need a suitable library. Here, we describe how to arrange to open compressed HDF5 files in a Python environment.

Installation

  1. Install dependencies
    • sudo apt-get install libhdf5-dev
    • sudo apt-get install cython
  2. If necessary, install python-pkgconfig:
  3. Install the h5py package (Python library for HDF5).
    1. Download and extract tarball (e.g. from [1]).
    2. Setup
      • cd h5py
      • sudo python setup.py install

See Also