lightkurve.KeplerTargetPixelFile.to_lightcurve#
- KeplerTargetPixelFile.to_lightcurve(method='sap', corrector=None, **kwargs)#
Performs photometry on the pixel data and returns a LightCurve object.
The valid keyword arguments depends on the method chosen:
‘sap’ or ‘aperture’: see the docstring of
extract_aperture_photometry()
‘prf’: see the docstring of
extract_prf_photometry()
‘pld’: see the docstring of
to_corrector()
For methods ‘sff’ and ‘cbv’, they are syntactic shortcuts of:
creating a lightcurve using ‘sap’ method,
corrects the created lightcurve using
LightCurve.to_corrector()
of the respective method.
- Parameters
- method‘aperture’, ‘prf’, ‘sap’, ‘sff’, ‘cbv’, ‘pld’.
Photometry method to use. ‘aperture’ is an alias of ‘sap’.
- **kwargsdict
Extra arguments to be passed to the
extract_aperture_photometry()
, theextract_prf_photometry()
, or theto_corrector()
method of this class.
- Returns
- lcLightCurve object
Object containing the resulting lightcurve.