pyUSID.io.anc_build_utils.build_ind_val_matrices

pyUSID.io.anc_build_utils.build_ind_val_matrices(unit_values, is_spectral=True)[source]

Builds indices and values matrices using given unit values for each dimension. Unit values must be arranged from fastest varying to slowest varying

Parameters:
  • unit_values (list / tuple) – Sequence of values vectors for each dimension

  • is_spectral (bool (optional), default = True) – If true, returns matrices for spectroscopic datasets, else returns matrices for Position datasets

Returns:

  • ind_mat (2D numpy array) – Indices matrix

  • val_mat (2D numpy array) – Values matrix