data_management

The package data_management provides modules for the interaction with the datafiles stored in the archive. The module measurement_management provides CRUD-Functions for the archive, while the hdf5_reader module can be used for reading and updating the measurement.h5-files.

measurement_management

create_measurement_dir(base_dir, ms_id)

Create a new directory for a single measurement with the measurement-ID ms_id in the folder of the archive (base_dir).

new_file_to_archive(src, base_dir, ms_id, ...)

Copy a file to the archive.

new_dataset_to_hdf5(data, hdf5_path, ...)

Write a new dataset to a hdf5-file.

raw_data_to_folder(raw_data_path, fmt, ...)

Copy raw datafiles to the archive.

raw_data_to_hdf5(base_dir, ms_id, fmt)

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

delete_element(base_dir, ms_id, category, ...)

Delete a file from the archive.

delete_measurement(base_dir, ms_id[, ...])

Delete a whole measurement directory from the archive.

list_files(base_dir, ms_id[, category])

List all files in a single measurement directory with the ID ms_id and all subdirectorys.

measurement_path(base_dir, ms_id)

Create the absolute path to a measurement folder with the ID ms_id.

hdf5_reader

load_h5(filename[, mode])

Load a hdf5-file as a H5Object.

load_from_id(ms_id[, mode])

Load a hdf5-measurement-file from the archive as a H5Object.

H5Object(h5node[, writable, auto_flush])

Represents a hdf5-file with its internal structure and all attributes/ datasets as a python object.