lightkurve.io.qlp.read_qlp_lightcurve

lightkurve.io.qlp.read_qlp_lightcurve(filename, flux_column='sap_flux', flux_err_column='kspsap_flux_err', quality_bitmask='default')[source]

Returns a LightCurve object given a light curve file from the MIT Quicklook Pipeline (QLP).

By default, QLP’s sap_flux column is used to populate the flux values, and ‘kspsap_flux_err’ is used to populate flux_err. For a discussion related to this choice, see https://github.com/lightkurve/lightkurve/issues/1083

More information: https://archive.stsci.edu/hlsp/qlp

Parameters
filenamestr

Local path or remote url of a QLP light curve FITS file.

flux_column‘sap_flux’, ‘kspsap_flux’, ‘kspsap_flux_sml’, ‘kspsap_flux_lag’, or ‘sap_bkg’

Which column in the FITS file contains the preferred flux data? By default the “Simple Aperture Photometry” flux (sap_flux) is used.

flux_err_column: ‘kspsap_flux_err’, or ‘sap_bkg_err’

Which column in the FITS file contains the preferred flux_err data?

quality_bitmaskstr or int

Bitmask (integer) which identifies the quality flag bitmask that should be used to mask out bad cadences. If a string is passed, it has the following meaning:

  • “none”: no cadences will be ignored.

  • “default”: cadences with severe quality issues will be ignored.

  • “hard”: more conservative choice of flags to ignore. This is known to remove good data.

  • “hardest”: removes all data that has been flagged. This mask is not recommended.

See the TessQualityFlags class for details on the bitmasks.