create_measurement_dir
- specatalog.data_management.measurement_management.create_measurement_dir(base_dir, ms_id)[source]
Create a new directory for a single measurement with the measurement-ID ms_id in the folder of the archive (base_dir). Directory and subdirectories are created as well as a hdf5-file for saving the data of the measurement. The hdf5-file has three groups: “raw_data”, “corrected_data” and “evaluations”.
The structure is as follows:
base_dir/ ├── data/ │ ├── M1/ │ ├── M2/ │ ├── M3/ │ ├── ... │ └── M{ms_id}/ │ ├── additional_info/ │ ├── figures/ │ ├── literature/ │ ├── raw/ │ ├── scripts/ │ └── measurement_M{ms_id}.h5 │ └── <other directories of the archive>- Parameters:
base_dir (str) – Path to the root-folder of the archive.
ms_id (int) – Number of the measurement.
- Raises:
FileExistsError – An error is raised if the measurement directory already exists.
- Returns:
path – Absolute path to the new measurement directory.
- Return type:
Path