pyUSID.io.hdf_utils.simple.create_empty_dataset

pyUSID.io.hdf_utils.simple.create_empty_dataset(source_dset, dtype, dset_name, h5_group=None, new_attrs=None, skip_refs=False)[source]

Creates an empty dataset in the h5 file based on the provided dataset in the same or specified group

Parameters:
  • source_dset (h5py.Dataset object) – Source object that provides information on the group and shape of the dataset

  • dtype (dtype) – Data type of the fit / guess datasets

  • dset_name (String / Unicode) – Name of the dataset

  • h5_group (h5py.Group, optional. Default = None) – Group within which this dataset will be created

  • new_attrs (dictionary (Optional)) – Any new attributes that need to be written to the dataset

  • skip_refs (boolean, optional) – Should ObjectReferences be skipped when copying attributes from the source_dset

Returns:

h5_new_dset – Newly created dataset

Return type:

h5py.Dataset object