load_h5
- specatalog.data_management.hdf5_reader.load_h5(filename, mode='r')[source]
Load a hdf5-file as a H5Object.
- Parameters:
filename (str) – Path to the hdf5-file.
mode (str, optional) – Decides whether the file should be writable. If mode=”r” no changes can be done to the file. If mode=”a”, the file is also writable. The default is “r”.
- Returns:
obj (H5Object) – The contents of the hdf5-file as a H5Object.
f (h5py.File) – The loaded hdf5-file. Use f.close() after all changes to the file are done.
- Return type:
(<class ‘specatalog.data_management.hdf5_reader.H5Object’>, <class ‘h5py._hl.files.File’>)