lightkurve.TargetPixelFileCollection.sector

property TargetPixelFileCollection.sector

(TESS-specific) the quarters of the lightcurves / target pixel files.

Returns numpy.nan for data products with lack a sector meta data keyword. The attribute is useful for filtering a collection by sector.

Examples

Plot two lightcurves, one from TESS sectors 13 to 19, and one for sector 22.

>>> import lightkurve as lk
>>> lcc = lk.search_lightcurve('TIC286923464', author='SPOC').download_all()  
>>> lcc_filtered = lcc[(lcc.sector >= 13) & (lcc.sector <= 19)]  
>>> lcc_filtered.plot()  
>>> lcc[lcc.sector == 22][0].plot()