tkmatrix.inject_model.InjectModel
- class tkmatrix.inject_model.InjectModel(inject_dir, time, flux, flux_err, rstar, mstar, t0, period, rplanet, exposure_time, ab)
Bases:
objectClass used to create a synthetic light curve.
- __init__(inject_dir, time, flux, flux_err, rstar, mstar, t0, period, rplanet, exposure_time, ab)
Methods
__init__(inject_dir, time, flux, flux_err, ...)make_model(inject_model)Creates an injected transit curve given the provided InjectModel parameters instance.
mass_from_radius(radius)Computation of mass-radius relationship from Bashi D., Helled R., Zucker S., Mordasini C., 2017, A&A, 604, A83.
- static make_model(inject_model)
Creates an injected transit curve given the provided InjectModel parameters instance.
- Parameters:
inject_model – the InjectModel object to be used as transit source. The result is written into a csv file.
- static mass_from_radius(radius)
Computation of mass-radius relationship from Bashi D., Helled R., Zucker S., Mordasini C., 2017, A&A, 604, A83. doi:10.1051/0004-6361/201629922
- Parameters:
radius – the radius value in earth radius
- Returns:
the mass in earth masses