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(ms_id)

Creates a new measurement directory structure with HDF5 file in the archive root folder.

new_file_to_archive(src, ms_id, category[, ...])

Copies a file to the archive measurement directory.

new_dataset_to_hdf5(data, h5_file, ...)

Writes a new dataset to an HDF5 file.

raw_data_to_folder(raw_data_path, fmt, ms_id)

Copies raw data files to the archive directory.

raw_data_to_hdf5(ms_id, fmt)

Write all 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(ms_id, category, filename[, ...])

Deletes a file from the archive measurement directory.

delete_measurement(ms_id[, save_delete])

Deletes an entire measurement directory from the archive.

list_files(ms_id[, category])

Lists files in a measurement directory or subdirectory.

hdf5_reader

load_h5(filename[, mode])

Loads an HDF5 file and returns it as an H5Object along with the underlying h5py.File.

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.

archive_manager

create_archive(use_remote_archive[, local_path])

Create and return an archive path.

SMBConnectionManager()

Manages SMB network connections for the archive.

SpecatalogArchive(use_remote_archive[, ...])

Handles file operations for the measurement archive.