TessLightCurveFile

class lightkurve.lightcurvefile.TessLightCurveFile(path, quality_bitmask='default', **kwargs)

Bases: lightkurve.lightcurvefile.LightCurveFile

Subclass of LightCurveFile to represent files generated by NASA’s TESS pipeline.

Parameters:
path : str

Local path or remote url of a FITS file in TESS’s lightcurve format.

quality_bitmask : str 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 severe quality issues will be ignored (quality_bitmask=1130799).
  • “hard”: more conservative choice of flags to ignore (quality_bitmask=1664431). This is known to remove good data.
  • “hardest”: removes all data that has been flagged (quality_bitmask=2096639). This mask is not recommended.

See the TessQualityFlags class for details on the bitmasks.

kwargs : dict

Keyword arguments to be passed to astropy.io.fits.open.

Attributes Summary

PDCSAP_FLUX Returns a LightCurve object for PDCSAP_FLUX
SAP_FLUX Returns a LightCurve object for SAP_FLUX
cadenceno Cadence number
dec Declination of the target.
ra Right Ascension of the target.
time Time measurements

Methods Summary

from_fits(path_or_url, **kwargs) WARNING: THIS FUNCTION IS DEPRECATED AND WILL BE REMOVED VERY SOON.
get_lightcurve(flux_type[, centroid_type])
header([ext]) Header of the object at extension ext
plot([flux_types, style]) Plot all the light curves contained in this light curve file.

Attributes Documentation

PDCSAP_FLUX

Returns a LightCurve object for PDCSAP_FLUX

SAP_FLUX

Returns a LightCurve object for SAP_FLUX

cadenceno

Cadence number

dec

Declination of the target.

ra

Right Ascension of the target.

time

Time measurements

Methods Documentation

classmethod from_fits(path_or_url, **kwargs)

WARNING: THIS FUNCTION IS DEPRECATED AND WILL BE REMOVED VERY SOON.

Please use lightkurve.open() instead.

get_lightcurve(flux_type, centroid_type='MOM_CENTR')
header(ext=0)

Header of the object at extension ext

plot(flux_types=None, style='lightkurve', **kwargs)

Plot all the light curves contained in this light curve file.

Parameters:
flux_types : str or list of str

List of flux types to plot. Default is to plot all available. (For Kepler the default fluxes are ‘SAP_FLUX’ and ‘PDCSAP_FLUX’.

style : str

matplotlib.pyplot.style.context, default is ‘fast’

kwargs : dict

Dictionary of keyword arguments to be passed to KeplerLightCurve.plot().


Created with ♥ by the Lightkurve developers. Join us on GitHub.