sidpy.hdf.reg_ref.create_region_reference

sidpy.hdf.reg_ref.create_region_reference(h5_main, ref_inds)[source]

Create a region reference in the destination dataset using an iterable of pairs of indices representing the start and end points of a hyperslab block

Parameters:
  • h5_main (HDF5 dataset) – dataset the region will be created in

  • ref_inds (Iterable) – index pairs, [start indices, final indices] for each block in the hyperslab

Returns:

new_ref – reference in h5_main for the blocks of points defined by ref_inds

Return type:

HDF5 Region reference