meepmeep.numba3d.light_travel_time_o#
- meepmeep.numba3d.light_travel_time_o(t, tpa, p, e, w, rstar, dt, ep_table, ep_times, coeffs)[source]#
Light travel time correction, referenced to primary transit.
The correction is
ltt(t) = -(z(t) - z(t_transit)) * rstar * (R_sun / c)
with z in stellar radii, rstar in solar radii, result in days. The reference is the primary transit (inferior conjunction):
ltt(t_transit) = 0by construction. This matches the convention used in transit fitting, where the observed mid-transit time is the reference and the LTT correction should add to the timing offset between primary transit and secondary eclipse (and intermediate phases), not to the transit itself.Accepts a scalar time
tor a 1-D array of times and dispatches to the scalar (_light_travel_time_os()) or vector (light_travel_time_ov()) kernel at compile time (inside@njit) or at call time (pure Python).Important: the convention in this module is that
tcis the periastron time (the same as for every other*_o*evaluator inorbit3d). The transit time istc + towhereto = mean_anomaly_at_transit(e, w) * p / (2*pi). Thee, warguments are needed to determineto.- Parameters:
- t
floatorndarray Time(s) at which to evaluate the correction.
- tpa
float Time of periastron passage.
- p
float Orbital period [days].
- e
float Eccentricity.
- w
float Argument of periastron [radians].
- rstar
float Stellar radius [R_sun].
- dt, ep_table, ep_times, coeffs
Multi-expansion-point dispatch arrays from
solve3d_orbit/create_expansion_points.
- t
- Returns: