h5py

Read HDF5 files from Python
Download

h5py Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Collette
  • Publisher web site:
  • http://h5py.alfven.org/

h5py Tags


h5py Description

Read HDF5 files from Python The HDF5 library is a versatile, mature library designed for the storage of numerical data. The h5py package provides a simple, Pythonic interface to HDF5. A straightforward high-level interface allows the manipulation of HDF5 files, groups and datasets using established Python and NumPy metaphors.Additionally, the library offers a low-level interface which exposes the majority of the HDF5 C API in a Pythonic, object-oriented fashion.The major design goals for h5py are simplicity and interoperability. You don't need to learn any new concepts beyond the basic principles of HDF5 and NumPy arrays, and the files you create with h5py can be opened with any other HDF5-aware program.What is HDF5?It's a filesystem for your data.Only two kinds of objects are stored in HDF5 files: datasets, which are homogenous, regular arrays of data (just like NumPy arrays), and groups, which are containers that store datasets and other groups. Each file is organized using a filesystem metaphor; groups are like folders, and datasets are like files. The syntax for accessing objects in the file is the traditional POSIX filesystem syntax. Here are some examples: / (Root group) /MyGroup (Subgroup) /MyGroup/DS1 (Dataset stored in subgroup) /MyGroup/Subgroup/DS2 (and so on)What is h5py?h5py is a simple Python interface to HDF5. You can interact with files, groups and datasets using traditional Python and NumPy metaphors. For example, groups behave like dictionaries, and datasets have shape and dtype attributes, and can be sliced and indexed just like real NumPy arrays. Datatypes are specified using standard NumPy dtype objects.You don't need to know anything about the HDF5 library to use h5py, apart from the basic metaphors of files, groups and datasets. The library handles all data conversion transparently, and datasets support advanced features like efficient multidimensional indexing and nested compound datatypes.One additional benefit of h5py is that the files it reads and writes are "plain-vanilla" HDF5 files. No Python-specific metadata or features are used. You can read HDF5 files created by any application, and write files that any HDF5-aware application can understand. Requirements: · Python


h5py Related Software