lightkurve.io.tglc.read_tglc_lightcurve#

lightkurve.io.tglc.read_tglc_lightcurve(filename, flux_column='cal_psf_flux', quality_bitmask='default')[source]#

Returns a LightCurve object given a light curve file from TGLC HLSP

By default, TGLC’s cal_psf_flux values are used for the flux column. No errors are provided by this HLSP.

Note this reader does not use the TGLC_FLAG extension to inform the bitmask for the returned light curve, but those flags can still be accessed.

More information on TGLC: https://archive.stsci.edu/hlsp/tglc

Parameters
filenamestr

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

flux_column‘CAL_PSF_FLUX’, ‘CAL_APER_FLUX’, ‘PSF_FLUX’, or ‘APERTURE_FLUX’

Which column in the FITS file contains the preferred flux data? By default the “Corrected PSF Flux” flux (CAL_PSF_FLUX) is used.

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 (quality_bitmask=0).

  • “default”: cadences with flags indicating AttitudeTweak, SafeMode, CoarsePoint, EarthPoint, Desat, or ManualExclude will be ignored.

  • “hard”: cadences with default flags, ApertureCosmic, CollateralCosmic, Straylight, or Straylight2 will be ignored.

  • “hardest”: cadences with all the above flags will be ignored, in addition to cadences with GSFC-ELEANOR-LITE bit flags of 17 (decimal value 131072) and 18 (decimal value 262144).