sidpy.hdf.reg_ref.copy_reg_ref_reduced_dim¶
- sidpy.hdf.reg_ref.copy_reg_ref_reduced_dim(h5_source, h5_target, h5_source_inds, h5_target_inds, key)[source]¶
Copies a region reference from one dataset to another taking into account that a dimension has been lost from source to target
- Parameters:
h5_source (HDF5 Dataset) – source dataset for region reference copy
h5_target (HDF5 Dataset) – target dataset for region reference copy
h5_source_inds (HDF5 Dataset) – indices of each dimension of the h5_source dataset
h5_target_inds (HDF5 Dataset) – indices of each dimension of the h5_target dataset
key (String) – Name of attribute in h5_source that contains the Region Reference to copy
- Returns:
ref_inds – Array containing pairs of points that define the corners of each hyperslab in the region reference
- Return type:
Nx2x2 array of unsigned integers