resample

sofia_redux.scan.filters.filters_numba_functions.resample(old, new)[source]

Fast implementation of the resample method.

Resampling from a high number of frames in the old array to a lower number of frames in the new array is done by taking a simple mean of old frames that fall into a single bin of the new array. Note that this is to be used exclusively for downsampling.

Parameters:
oldnumpy.ndarray (float)

The old channel profiles of shape (n_channels, n1)

newnumpy.ndarray (float)

The new channel profiles of shape (n_channels, n2). Updated in-place.

Returns:
None