Custom ephemeris¶
Example of usage on ATREIDES sample:¶
In this notebook we will show how to use custom ephemeris on ATREIDES targets.
[1]:
import PTO.database.catalog as cat
Creating and Loading Custom Exoplanet Data¶
In the next cell, we will create a custom CSV file for exoplanet data using the ATREIDES catalog.
This csv file is a blank example on how to use add custom planets.
[2]:
ATREIDES = cat.CatalogComposite()
ATREIDES.create_exoplanet_csv('custom.csv')
INFO | File custom.csv created successfully.
Printing the table (assuming it is loaded with the load_exoplanet_csv) will grant only the header, as no lines are added. This is to be done by the user manually. Furthermore this allows simple interface with external codes.
In principle one can add other columns to the csv file (csv delimiter = ‘;’) and the table will be loaded correctly.
[ ]:
# Load and print table
ATREIDES.load_exoplanet_csv('custom.csv')
ATREIDES.table
Lets add the ephemeris inside the csv file. This step is left to the user according to the situation. Only the mandatory keys for calculation of the transit windows are given. In this notebook we use predefined csv file instead, for actual use just update the csv file just generated.
Technically, magnitude is not relevant to the transit window, but contains useful information for given instrument, and as such is requested.
[ ]:
ATREIDES.load_exoplanet_csv('ATREIDES_custom.csv')
[ ]:
import pandas as pd
# To ensure full table is displayed
pd.set_option("display.max_rows", None)
# Print table
ATREIDES.table