meepmeep.numba3d.zpos_od

Contents

meepmeep.numba3d.zpos_od#

meepmeep.numba3d.zpos_od(t, tpa, p, dt, ep_table, ep_times, coeffs, dcoeffs)[source]#

Planet z-position and orbital-parameter derivatives for any orbital phase.

Accepts a scalar time t or a 1-D array of times and dispatches to the scalar (_zpos_osd()) or vector (zpos_ovd()) kernel at compile time (inside @njit) or at call time (pure Python).

Cheaper than pos_od() when only the line-of-sight coordinate and its gradient are needed.

Parameters:
tfloat or ndarray

Time at which to evaluate the z-coordinate and gradient.

tpa, p, dt, ep_table, ep_times, coeffs, dcoeffs

See pos_od().

Returns:
pzfloat or ndarray

Line-of-sight planet coordinate [stellar radii]. Arrays of shape (N,) for an array t.

dpzndarray

Gradient w.r.t. (tc, p, a, i, e, w, lan). Shape (7,) for a scalar t, (N, 7) for an array t.