qmi.data.dataset.write_dataset_to_hdf5

qmi.data.dataset.write_dataset_to_hdf5(dataset: DataSet, hdf_group: Group | Group | File | File) None

Write the specified dataset to the specified HDF5 group.

The dataset “name” field determines the name of the corresponding HDF5 dataset. An error occurs if the HDF5 group already contains a dataset with the same name.

Note that this function may create additional supporting datasets in the HDF5 group if the DataSet instance uses axis scales. In this case, HDF5 datasets named “<datasetname>_axisN_scale” will be created in addition to the main dataset.

Parameters:
  • dataset – DataSet instance to write to HDF5.

  • hdf_group – HDF5 File or Group instance to which the dataset is written.