Difference between revisions of "HDF5"
KevinYager (talk | contribs) |
KevinYager (talk | contribs) (→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 | + | # 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# | + | ##* 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 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.
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]).