average_chunks

ska_sdp_func_python.util.array_functions.average_chunks(arr, wts, chunksize)[source]

Average the array arr with weights by chunks.

Array length does not have to be multiple of chunksize.

Parameters:
  • arr – 1D array of values

  • wts – 1D array of weights

  • chunksize – Averaging size

Returns:

1D array of averaged data_models, 1d array of weights