fit_basis

tessilator.detrend_cbv.fit_basis(flux, basis, scl=None)[source]

Calculate the flux-correction weights for the co-trending basis vectors (CBVs).

This routine is taken directly from Aigrain et al. 2017

Parameters:
fluxiterable

The list of normalised flux values from the target lightcurve.

basisiterable

The list of co-trending basis vectors.

sclfloat, optional, default=’None’

An additional scaling factor for the CBVs.

Returns:
weightsiterable

The weights assigned for each lightcurve data point.