Downloading data#
Searching the Kepler & TESS archive#
Lightkurve provides three functions which make it easy to search and download TESS and Kepler data products from the public data archive at MAST.
|
Search the MAST data archive for target pixel files. |
|
Search the MAST data archive for light curves. |
|
Search the MAST TESSCut service for a region of sky that is available as a TESS Full Frame Image cutout. |
Downloading data products#
The search functions listed above return a SearchResult
object,
which provides an easy way to select and download data.
|
Container for the results returned by the search functions. |
|
Download and open the first data product in the search result. |
|
Download and open all data products in the search result. |
Filtering search results#
The SearchResult
object provides convenient access to the essential metadata,
which enables the search results to be filtered.
For example, a search result can be filtered by exposure time using
result = result[result.exptime.value < 100]
.
Kepler quarter or TESS sector names for each data product found. |
|
Year the observation was made. |
|
Pipeline name for each data product found. |
|
Target name for each data product found. |
|
Exposure time for each data product found. |
|
Distance from the search position for each data product found. |
|
Right Ascension coordinate for each data product found. |
|
Declination coordinate for each data product found. |
|
|
Customizing search results display#
Users can optionally include a list of extra columns in the default display of SearchResult
objects.
A list of extra columns to be included in the default display of the search result. |
Data products collection#
SearchResult.download_all
returns a LightCurveCollection
or a
TargetPixelFileCollection
object. They contain the data products, along with some convenience functions.
A collection can also be further filtered using standard Python list syntax,
and a subset of numpy.ndarray
syntax.
For example, a collection can be filtered by TESS sectors using
lcc[(lcc.sector >= 13) & (lcc.sector <= 19)]
.
|
Class to hold a collection of LightCurve objects. |
|
Stitch all light curves in the collection into a single |
|
Plots all light curves in the collection on a single plot. |
Appends a new object to the collection. |
|
(K2-specific) the campaigns of the lightcurves / target pixel files. |
|
(Kepler-specific) the quarters of the lightcurves / target pixel files. |
|
(TESS-specific) the quarters of the lightcurves / target pixel files. |
|
Class to hold a collection of |
|
Individually plots all TargetPixelFile objects in a single matplotlib axes object. |
|
Appends a new object to the collection. |
|
(K2-specific) the campaigns of the lightcurves / target pixel files. |
|
(Kepler-specific) the quarters of the lightcurves / target pixel files. |
|
(TESS-specific) the quarters of the lightcurves / target pixel files. |