sel_nb¶
- tessilator.detrend_cbv.sel_nb(flux, cbv, nBmax=None, use=None)[source]¶
Correct light curve for systematics using upt to nB CBVs (automatically select best number).
- Parameters:
- flux
Iter A 1-D array of light curves
- cbv
Iter A 2-D array of co-trending basis vectors trends
- nBmax
int, optional, default=None The maximum number of CBVs to use (starting with the first)
- use
bool, optional, default=True True for data points to use in evaluating correction, False for data points to ignore (NaNs are also ignored)
- flux
- Returns:
- nBopt
int The automatically selected number of CBVs used (<= nBmax)
- corr_flux
Iter The corrected light curves (same shape as flux)
- weights
Iter The co-trending basis vector coefficients (same shape as nBopt).
- nBopt