Difference between revisions of "HDF5"

From GISAXS
Jump to: navigation, search
(Installation)
Line 7: Line 7:
 
In order to read HDF5 files, you will need a suitable library.
 
In order to read HDF5 files, you will need a suitable library.
 
===Installation===
 
===Installation===
# Install HDF5 libraries
+
# Install dependencies
 
#* sudo apt-get install libhdf5-dev
 
#* sudo apt-get install libhdf5-dev
 +
#* sudo apt-get install cython
 +
# If necessary, install [https://pypi.python.org/pypi/pkgconfig/1.1.0 python-pkgconfig]:
 +
#* sudo apt-get install python-setuptools
 +
#* wget https://pypi.python.org/packages/source/p/pkgconfig/pkgconfig-1.1.0.tar.gz
 +
#* cd d pkgconfig-1.1.0/
 +
#* python setup.py install
 
# Install the [http://www.h5py.org/ h5py package] ([[Python]] library for HDF5).
 
# Install the [http://www.h5py.org/ h5py package] ([[Python]] library for HDF5).
## Download tarball (e.g. from [https://pypi.python.org/pypi/h5py]).
+
## Download and extract tarball (e.g. from [https://pypi.python.org/pypi/h5py]).
##* wget https://pypi.python.org/packages/source/h/h5py/h5py-2.5.0.tar.gz#md5=6e4301b5ad5da0d51b0a1e5ac19e3b74
+
##* wget https://pypi.python.org/packages/source/h/h5py/h5py-2.5.0.tar.gz
 +
##* tar xzvf h5py-2.5.0.tar.gz
 +
## Setup
 +
##* cd h5py
 +
##* sudo python setup.py install
  
 
==See Also==
 
==See Also==

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.

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