Orbital geometry (lazuli_exo.orbit)
Orbital geometry helpers shared by the precompute scripts and the runtime.
- lazuli_exo.orbit.transit_duration_s(period_d, a_over_rs, rp_rs, inc_deg=90.0, ecc=0.0, w_deg=90.0)[source]
Total transit duration T14 in seconds (Winn 2010, eqs. 14 and 16).
Impact parameter and duration both carry the eccentric conjunction- distance / velocity factors. Returns 0.0 for a non-transiting geometry.
- lazuli_exo.orbit.sky_position(t_s, period_d, a_over_rs, inc_deg=90.0, ecc=0.0, w_deg=90.0)[source]
Planet position (X, Y, Z) in stellar radii for a Keplerian orbit (Winn 2010, eqs. 2-5), t_s seconds from mid-transit.
X and Y lie in the sky plane (Y along the projected orbital axis), Z points toward the observer, so Z > 0 is the planet in front of the star. Mid-transit is inferior conjunction (true anomaly f = pi/2 - w, batman / jaxoplanet convention), so hypot(X, Y) at t = 0 is the eccentric impact parameter. Kepler’s equation is solved by vectorised Newton iteration; for ecc = 0 this reduces to the circular arc.
- lazuli_exo.orbit.projected_separation(t_s, period_d, a_over_rs, inc_deg=90.0, ecc=0.0, w_deg=90.0)[source]
Sky-projected star-planet separation z(t) in stellar radii, the hypotenuse of
sky_position()’s X and Y.