ben-cassese / squishyplanet

Transits of non-spherical exoplanets
https://squishyplanet.readthedocs.io/en/latest/
MIT License
4 stars 2 forks source link

Add t0 option instead of t_peri #18

Closed ben-cassese closed 1 month ago

ben-cassese commented 1 month ago

Right now you need to parameterize your system using the time of periastron, t_peri. This is mildly inconvenient but ok when dealing with circular orbits (transit center will be period/4 after t_peri), but pretty annoying when dealing with eccentric planets where small shifts in omega/eccentricity can cause transits to vanish entirely. It'd be nicer to give the option of parameterizing either with t_peri or with t0, where t0 is the time of transit midpoint.