lightkurve.KeplerTargetPixelFile.to_lightcurve

KeplerTargetPixelFile.to_lightcurve(method='sap', corrector=None, **kwargs)

Performs photometry on the pixel data and returns a LightCurve object.

See the docstring of aperture_photometry() for valid arguments if the method is ‘aperture’. Otherwise, see the docstring of prf_photometry() for valid arguments if the method is ‘prf’.

Parameters
method‘aperture’, ‘prf’, ‘sap’, ‘sff’, ‘cbv’, ‘pld’.

Photometry method to use.

**kwargsdict

Extra arguments to be passed to the aperture_photometry or the prf_photometry method of this class.

Returns
lcLightCurve object

Object containing the resulting lightcurve.