raw_data_to_hdf5

specatalog.data_management.measurement_management.raw_data_to_hdf5(base_dir, ms_id, fmt)[source]

Write the data from the raw data datafiles in the archive at <base_dir>/data/M<ms_id>/raw/ to the hdf5-file <base_dir>/data/M<ms_id>/measurement.h5

The datasets are saved as arrays in the group ‘raw_data’.

Parameters:
  • base_dir (str or Path) – Path to the root-folder of the archive.

  • ms_id (str or int) – Number of the measurement.

  • fmt (str) – Format of the raw_data. One of the supported formats [“bruker_bes3t”, “cw_epr”, “uvvis_ulm”, “uvvis_freiburg”].

Raises:

ValueError – An error is raised if the fileformat is not known or if not all necessary datafiles are available under the same name.

Return type:

None.