add_skydip_frames

sofia_redux.scan.source_models.source_numba_functions.add_skydip_frames(data, weight, signal_values, signal_weights, frame_weights, frame_valid, data_bins)[source]

Add signal values to the sky dip model data.

The skydip model data (data) and weights (weight) are added to using increments of:

data += frame_weights * signal_weights * signal_values
weight += frame_weights * signal_weights
Parameters:
datanumpy.ndarray (float)

The skydip model data of shape (n_data,).

weightnumpy.ndarray (float)

The skydip model data weight of shape (n_data,).

signal_valuesnumpy.ndarray (float)

The signal values of shape (n_frames,)

signal_weightsnumpy.ndarray (float)

The signal value weights of shape (n_frames,)

frame_weightsnumpy.ndarray (float)

The frame relative weights of shape (n_frames,)

frame_validnumpy.ndarray (bool)

A mask of shape (n_frames,) where False exclude a given frame from processing.

data_binsnumpy.ndarray (int)

A mapping array of shape (n_frames,) in which data_bins[i] maps frame i onto the data and weight array indices.

Returns:
None