msl.io.readers.hdf5 module

Reader for the HDF5 file format.

Attention

This Reader loads the entire HDF5 file in memory. If you need to use any of the more advanced features of an HDF5 file, it is best to directly load the file using H5py.

class msl.io.readers.hdf5.HDF5Reader(file)[source]

Bases: Reader

Reader for the HDF5 file format.

Parameters:

file (path-like or file-like) – The file to read.

static can_read(file, **kwargs)[source]

The HDF5 file format has a standard signature.

The first 8 bytes are \x89HDF\r\n\x1a\n.

read(**kwargs)[source]

Reads the HDF5 file.

Parameters:

**kwargs – All key-value pairs are passed to File.