pyUSID.io.anc_build_utils.get_aux_dset_slicing¶
- pyUSID.io.anc_build_utils.get_aux_dset_slicing(dim_names, last_ind=None, is_spectroscopic=False)[source]¶
Returns a dictionary of slice objects to help in creating region references in the position or spectroscopic indices and values datasets
- Parameters:
dim_names (iterable) – List of strings denoting the names of the position axes or spectroscopic dimensions arranged in the same order that matches the dimensions in the indices / values dataset
last_ind ((Optional) unsigned int, default = None) – Last pixel in the positon or spectroscopic matrix. Useful in experiments where the parameters have changed (eg. BEPS new data format) during the experiment.
is_spectroscopic (bool, optional. default = True) – set to True for position datasets and False for spectroscopic datasets
- Returns:
slice_dict – Dictionary of tuples containing slice objects corresponding to each position axis.
- Return type:
dictionary