lightkurve.io.qlp.read_qlp_lightcurve#

lightkurve.io.qlp.read_qlp_lightcurve(filename, flux_column='sap_flux', flux_err_column=None, 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 / det_flux_err is used to populate flux_err. For a discussion related to this choice, see https://github.com/lightkurve/lightkurve/issues/1083

For detrended flux, the columns are named with kspsap_ prefix in sectors 1-55, and det_ prefix in sectors 56+. Column sys_rm_flux is available in sectors 56+.

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’, ‘det_flux’, ‘det_flux_sml’, ‘det_flux_lag’, ‘sys_rm_flux’, 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’,’det_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.

QLP-specific “Low precision points” (bit 13 in sectors 1-55, bit 31 in sectors 56+) is included in “hard” and “hardest” bitmasks.

See the TessQualityFlags class for details on the bitmasks.