hdf5

module of dascore.utils source

Utilities for working with HDF5 files (h5py-based).

Functions

Name Description
encode_h5_strings Encode strings as a fixed-length UTF-8 HDF5 byte array.
extract_h5_attrs Extract attributes from h5 file based on structure.
get_h5py_file Return the underlying h5py.File for a DASCore h5 handle.
h5_matches_structure Check if an H5 file matches a spec given by a structure.
open_h5_resource Open an HDF5 resource and return DASCore’s managed h5py handle wrapper.
unpack_scalar_h5_dataset Unpack a scalar H5Py dataset.

Classes

Name Description
H5Reader A thin wrapper around h5py for reading files.
H5Writer A thin wrapper around h5py for writing files.
LocalH5Reader An h5py reader which first materializes remote resources locally.