fixed_nb

tessilator.detrend_cbv.fixed_nb(flux, cbv, nB=4, use=None, doPlot=True)[source]

Correct light curve for systematics using first nB CBVs.

Parameters:
fluxIter

The 1-D array of light curves

cbvIter

The 2-D array of co-trending basis vectors trends

nbint, optional, default=4

The number of CBVs to use (the first nB are used)

usebool, optional, default=True

True for data points to use in evaluating correction, False for data points to ignore (NaNs are also ignored)

doPlotbool, optional, default=True

Choose whether to produce a plot of the CBV corrections.

Returns:
corrected_fluxIter

The corrected light curves, with the same shape as flux

weightsIter

An nB-sized array containing the basis vector coefficients