sigpyproc.io.fbh5#
Sigproc-style HDF5 header parsing.
This module contains functions for parsing Sigproc-style HDF5 headers.
Functions
Map HDF5 dimension labels to their corresponding axis numbers. |
|
Parse the metadata from a single Sigproc-style HDF5 file. |
- sigpyproc.io.fbh5.map_dimensions(dimension_labels)[source]#
Map HDF5 dimension labels to their corresponding axis numbers.
- Parameters:
- dimension_labels
np.ndarrayorList[str] Array or list of dimension labels from HDF5 file.
- dimension_labels
- Returns:
- Raises:
ValueErrorIf an unexpected dimension label is encountered.
- sigpyproc.io.fbh5.parse_header(filename)[source]#
Parse the metadata from a single Sigproc-style HDF5 file.
- Parameters:
- Returns:
dictObservational metadata
- Raises:
FileNotFoundErrorIf the file does not exist
OSErrorIf file header is not in sigproc HDF5 format or no data block found in file