pyNSID.io.hdf_utils.link_as_main¶
- pyNSID.io.hdf_utils.link_as_main(h5_main, dim_dict)[source]¶
Attaches datasets as h5 Dimensional Scales to h5_main
- Parameters
h5_main (h5py.Dataset) – N-dimensional Dataset which will have the references added as h5 Dimensional Scales
dim_dict (dictionary with dimensional order as key and items are datasets to be used as h5 Dimensional Scales) –
- Returns
NSIDataset version of h5_main now that it is a NSID Main dataset
- Return type
pyNSID.NSIDataset