Returns a systematics-corrected light curve.
If the parameters pld_order and pca_components are None, their
value will be assigned based on the mission. K2 and TESS experience
different dominant sources of noise, and require different defaults.
For information about how the defaults were chosen, see PR #746 at
The order of Pixel Level De-correlation to be performed. First order
(n=1) uses only the pixel fluxes to construct the design matrix.
Higher order populates the design matrix with columns constructed
from the products of pixel fluxes. Default 3 for K2 and 1 for TESS.
Number of terms added to the design matrix for each order of PLD
pixel fluxes. Increasing this value may provide higher precision
at the expense of slower speed and/or overfitting.
A boolean array describing the aperture such that True means
that the pixel will be used when selecting the PLD basis vectors.
If None or all are passed in, all pixels will be used.
If ‘pipeline’ is passed, the mask suggested by the official pipeline
will be returned.
If ‘threshold’ is passed, all pixels brighter than 3-sigma above
the median flux will be used.
Number of knots in spline.
Polynomial degree of spline.
Whether to restore the long term spline trend to the light curve.
Whether to create SparseDesignMatrix.
Mask, where True indicates a cadence that should be used.
Standard deviation at which to remove outliers from fitting
Number of iterations to fit and remove outliers
Whether to propagate the uncertainties from the regression. Default is False.
Setting to True will increase run time, but will sample from multivariate normal
distribution of weights.
As of Lightkurve v2.0 PLDCorrector uses splines instead of Gaussian Processes.
As of Lightkurve v2.0 the aperture_mask parameter needs to be
passed to the class constructor.