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’.

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

Photometry method to use.


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

lcLightCurve object

Object containing the resulting lightcurve.