CONAN.get_files.get_TESS_data#

class CONAN.get_files.get_TESS_data(planet_name)#

Bases: object

Class to download and save TESS light curves from MAST (using the lightkurve package).

Parameters:

planet_name (str) – Name of the planet.

Examples

>>> from CONAN.get_files import get_TESS_data
>>> df = get_TESS_data("WASP-121")
>>> df.search(author="SPOC", exptime=120)
>>> df.download(sectors= [7,33,34,61], author="SPOC", exptime=120)
>>> df.scatter()
>>> df.save_CONAN_lcfile(bjd_ref = 2450000, folder="data")
contam#
lc#
planet_name#

Methods#

_find_gaps(t, gap_size)

find gaps in the data

discard_ramp([length, gap_size, start, end])

Discard data at the start/end of the orbits (or large gaps) that typically feature ramps

download([sectors, author, exptime, select_flux, ...])

Download TESS light curves from MAST using the lightkurve package

mask_points([time_ranges, flux_ranges, verbose])

Mask out points in the light curve based on given time ranges and/or flux ranges.

save_CONAN_lcfile([bjd_ref, folder, out_filename])

Save TESS light curves as a CONAN light curve file.

scatter()

Plot the scatter of the light curves.

search([sectors, author, exptime])

Search for TESS light curves on MAST using the lightkurve package.

split_data([gap_size, split_times, show_plot])

Split the light curves into sections based on (1)gaps in the data, (2)given time intervals (3)given split time(s).