pyUSID

pyUSID

  • pyUSID
  • Installation
  • Frequently asked questions
  • Contact us
  • Credits
  • Scaling to Clusters
  • pyUSID

Examples

  • User Guide
pyUSID
  • pyUSID.io.hdf_utils.simple.link_as_main
  • View page source

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


© Copyright 2018, Suhas Somnath and Chris R. Smith.

Built with Sphinx using a theme provided by Read the Docs.