CONAN.get_files.get_K2_data#

class CONAN.get_files.get_K2_data(planet_name)#

Bases: object

Class to download and save K2 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_K2_data("K2-233")
>>> df.search(campaign=[15], exptime=60)
>>> df.download(campaign=[2,4,7], exptime=60)
>>> 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([campaigns, exptime, author, select_flux, ...])

Download Kepler K2 light curves from MAST using the lightkurve package

save_CONAN_lcfile([bjd_ref, folder, out_filename])

Save Kepler K2 light curves as a CONAN light curve file.

scatter()

Plot the scatter of the light curves.

search([campaigns, author, exptime])

Search for K2 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).