io

Functions to perform input/output

alderaan.utils.io.dynesty_results_to_fits(results, context)

results : dynesty.DynamicNestedSampling.results context : alderaan.utils.pipeline.PipelineContext

alderaan.utils.io.parse_holczer16_catalog(filepath, koi_id, num_planets)

Reads transit time table from Holczer+2016 into a list of Ephemeris objects

Automatically corrects for zero-point offsets between catalogs
  • Holczer+2016 used BJD - 2454900

  • Kepler Project used BJKD = BJD - 2454833

Parameters:
  • filepath (str) – path to Holczer+2016 table

  • koi_id (str) – KOI identification number in the format, e.g., K01234

  • num_planets – total number of planets in the system

Returns:

list of (0,num_planets) Ephemeris objects

Return type:

list

alderaan.utils.io.parse_koi_catalog(filepath, koi_id)

Reads a Kepler Object of Interest Catalog and performs consistency checks

Expected columns are:

[kic_id, koi_id, npl, period, epoch, depth, duration, impact, ld_u1, ld_u2]

Parameters:
  • filepath (str) – path to csv file

  • koi_id (str) – KOI identification number in the format, e.g., K01234

Returns:

catalog of target star/planet properties

Return type:

pd.DataFrame