add_drifts

sofia_redux.scan.signal.signal_numba_functions.add_drifts(signal_values, drifts, drift_length)[source]

Add drift values to the signal.

Drifts are supplied in block form, where a single drifts (d) value is added to a block of drift_length (l) signal_values (x). For drift i, the signal will be updated by:

signal[il:(i+1)l] += d[i]

Parameters:
signal_valuesnumpy.ndarray (float)

The signal values of shape (n_signal,). Updated in-place.

driftsnumpy.ndarray (float)

The signal drifts of shape (n_drifts,).

drift_lengthint

The number of signal values in each drift.

Returns:
None