h5py (Python package)

official site: h5py.org
documentation: docs.h5py.org
 

The h5py package is a Pythonic interface to the HDF5 (wiki) binary data format.

It lets you store huge amounts of numerical data, and easily manipulate that data from NumPy (NumPy). For example, you can slice into multi-terabyte datasets stored on disk, as if they were real NumPy arrays. Thousands of datasets can be stored in a single file, categorized and tagged however you want.

H5py uses straightforward NumPy and Python metaphors, like dictionary and NumPy array syntax. For example, you can iterate over datasets in a file, or check out the .shape or .dtype attributes of datasets.

---
Архивы HDF5 могут быть просмотрены с помощью программы HDFView, однако установить её на Linux (за исключением Centos7) является большой проблемой. Версия в репозитории Ubuntu давно устарела и файлы не открывает. Также есть ссылка на скачивание со страницы support.hdfgroup.org, однако для подключения к FTP требуется непонятный пароль.

 

Установка HDFView на Linux (не получилось)

 

 

About HDF5

Wiki > Hierarchical Data Format
HDF (Hierarchical Data Format) is a set of file formats (HDF4, HDF5) designed to store and organize large amounts of data. It is supported by The HDF Group, a non-profit corporation whose mission is to ensure continued development of HDF5 technologies and the continued accessibility of data stored in HDF. In keeping with this goal, the HDF libraries and associated tools are available under a liberal, BSD-like license for general use. HDF is supported by many commercial and non-commercial software platforms, including Java, MATLAB, Scilab, Octave, OCaml, Mathematica, IDL, Python, R, Fortran, and Julia.

HDF5 simplifies the file structure to include only two major types of object:
    - Datasets, which are multidimensional arrays of a homogeneous type
    - Groups, which are container structures which can hold datasets and other groups
This results in a truly hierarchical, filesystem-like data format.[clarification needed][citation needed] In fact, resources in an HDF5 file can be accessed using the POSIX-like syntax /path/to/resource. Metadata is stored in the form of user-defined, named attributes attached to groups and datasets. More complex storage APIs representing images and tables can then be built up using datasets, groups and attributes.

In addition to these advances in the file format, HDF5 includes an improved type system, and dataspace objects which represent selections over dataset regions. The API is also object-oriented with respect to datasets, groups, attributes, types, dataspaces and property lists.

Because it uses B-trees to index table objects, HDF5 works well for time series data such as stock price series, network monitoring data, and 3D meteorological data. The bulk of the data goes into straightforward arrays (the table objects) that can be accessed much more quickly than the rows of an SQL database, but B-tree access is available for non-array data. The HDF5 data storage mechanism can be simpler and faster than an SQL star schema.

Criticism of HDF5 follows from its monolithic design and lengthy specification.
    • HDF5 does not enforce the use of UTF-8, so client applications may be expecting ASCII in most places.
    • Dataset data cannot be freed in a file without generating a file copy using an external tool (h5repack).

 

Tags