pyUSID.io.hdf_utils.simple.validate_anc_h5_dsets¶
- pyUSID.io.hdf_utils.simple.validate_anc_h5_dsets(h5_inds, h5_vals, main_shape, is_spectroscopic=True)[source]¶
Checks ancillary HDF5 datasets against shape of a main dataset. Errors in parameters will result in Exceptions
- Parameters:
h5_inds (h5py.Dataset) – HDF5 dataset corresponding to the ancillary Indices dataset
h5_vals (h5py.Dataset) – HDF5 dataset corresponding to the ancillary Values dataset
main_shape (array-like) – Shape of the main dataset expressed as a tuple or similar
is_spectroscopic (bool, Optional. Default = True) – set to True if
dims
correspond to Spectroscopic Dimensions. False otherwise.