meepmeep.numba3d.zpos_o

Contents

meepmeep.numba3d.zpos_o#

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

Planet z-position (line-of-sight coordinate) for any orbital phase.

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

Cheaper than pos_o() when only the line-of-sight coordinate is needed (e.g. for light travel time and eclipse-side geometry).

Parameters:
tfloat or ndarray

Time(s) at which to evaluate the z-coordinate.

tpa, p, dt, ep_table, ep_times, coeffs

See pos_o().

Returns:
zfloat or ndarray

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