pyUSID.io.hdf_utils.simple.link_as_main¶
- pyUSID.io.hdf_utils.simple.link_as_main(h5_main, h5_pos_inds, h5_pos_vals, h5_spec_inds, h5_spec_vals)[source]¶
Links the object references to the four position and spectroscopic datasets as attributes of h5_main
- Parameters:
h5_main (h5py.Dataset) – 2D Dataset which will have the references added as attributes
h5_pos_inds (h5py.Dataset) – Dataset that will be linked with the name ‘Position_Indices’
h5_pos_vals (h5py.Dataset) – Dataset that will be linked with the name ‘Position_Values’
h5_spec_inds (h5py.Dataset) – Dataset that will be linked with the name ‘Spectroscopic_Indices’
h5_spec_vals (h5py.Dataset) – Dataset that will be linked with the name ‘Spectroscopic_Values’
- Returns:
USIDataset version of h5_main now that it is a USID Main dataset
- Return type:
pyUSID.USIDataset