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:
- flux
Iter The 1-D array of light curves
- cbv
Iter The 2-D array of co-trending basis vectors trends
- nb
int, optional, default=4 The number of CBVs to use (the first nB are used)
- use
bool, optional, default=True True for data points to use in evaluating correction, False for data points to ignore (NaNs are also ignored)
- doPlot
bool, optional, default=True Choose whether to produce a plot of the CBV corrections.
- flux
- Returns:
- corrected_flux
Iter The corrected light curves, with the same shape as flux
- weights
Iter An nB-sized array containing the basis vector coefficients
- corrected_flux