Difference between revisions of "HDF5"
KevinYager (talk | contribs) (→Installation) |
KevinYager (talk | contribs) (→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 17:43, 4 August 2015
Hierarchical Data Format (HDF) is a portable binary format, meant to be extensible and self-describing.
Contents
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
- Install dependencies
- sudo apt-get install libhdf5-dev
- sudo apt-get install cython
- If necessary, install 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 h5py package (Python library for HDF5).
- Download and extract tarball (e.g. from [1]).
- 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
- Download and extract tarball (e.g. from [1]).