sherlockpipe.ois.OisManager.OisManager

class sherlockpipe.ois.OisManager.OisManager(cache_dir)

Bases: object

Handles the tois, kois and epic ois for the different missions. Updates them from the proper web services.

__init__(cache_dir)

Initialize the OisManager.

Parameters

cache_dirstr

The parent directory for the OI cache (.sherlockpipe/ will be created inside it).

Methods

__init__(cache_dir)

Initialize the OisManager.

load_ois()

Loads all the ois in an in-memory dataframe.

update_epic_csvs()

Reloads the K2 Objects of Interest.

update_kic_csvs()

Reloads the Kepler Objects of Interest.

update_tic_csvs()

Reloads the TESS Objects of Interest.

Attributes

CTOIS_CSV

Final name of CTOIs csv

CTOIS_CSV_URL

Url to download the CTOIs

EPIC_CSV

Final name of EPIC OIs csv

EPIC_CSV_URL

Url to download the EPICs

KIC_STAR_CSV

Final name of KICs csv

KIC_STAR_URL

Url to download the KICs

KOIS_CSV

Final name of KOIs csv

KOIS_LIST_URL

Url to get the entire list of KOIs

KOI_CSV_URL

Url to download the KOIs

TOIS_CSV

Final name of TOIs csv

TOIS_CSV_URL

Url to download the TOIs

ois

OIS DataFrame

CTOIS_CSV = 'ctois.csv'

Final name of CTOIs csv

CTOIS_CSV_URL = 'https://exofop.ipac.caltech.edu/tess/download_ctoi.php?sort=ctoi&output=csv'

Url to download the CTOIs

EPIC_CSV = 'epic_ois.csv'

Final name of EPIC OIs csv

EPIC_CSV_URL = 'https://exoplanetarchive.ipac.caltech.edu/TAP/sync?query=select+epic_hostname,pl_name,disposition,pl_orbper,sy_dist,st_teff,st_logg,st_metratio,st_metratio,st_vsin,sy_kepmag,pl_trandep,pl_trandur,pl_rade,pl_eqt,pl_orbincl,ra,dec,pl_tranmid+from+k2pandc&format=csv'

Url to download the EPICs

KIC_STAR_CSV = 'kic_star.csv'

Final name of KICs csv

KIC_STAR_URL = 'https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=keplerstellar&select=kepid,dist'

Url to download the KICs

KOIS_CSV = 'kois.csv'

Final name of KOIs csv

KOIS_LIST_URL = 'https://exofop.ipac.caltech.edu/kepler/targets.php?sort=num-pc&page1=1&ipp1=100000&koi1=&koi2='

Url to get the entire list of KOIs

KOI_CSV_URL = 'https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=cumulative'

Url to download the KOIs

TOIS_CSV = 'tois.csv'

Final name of TOIs csv

TOIS_CSV_URL = 'https://exofop.ipac.caltech.edu/tess/download_toi.php?sort=toi&output=csv'

Url to download the TOIs

load_ois()

Loads all the ois in an in-memory dataframe.

Returns:

the ois dataframe

ois = None

OIS DataFrame

update_epic_csvs()

Reloads the K2 Objects of Interest.

Return OisManager:

the OisManager class to be used as a fluent API.

update_kic_csvs()

Reloads the Kepler Objects of Interest.

Return OisManager:

the OisManager class to be used as a fluent API.

update_tic_csvs()

Reloads the TESS Objects of Interest.

Return OisManager:

the OisManager class to be used as a fluent API.