meepmeep.numba3d.star_planet_distance_o

meepmeep.numba3d.star_planet_distance_o#

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

3D star-planet distance at an array of times.

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

Returns \(\sqrt{x^2 + y^2 + z^2}\), the full Euclidean separation in 3D. Distinct from _sep_os(), which projects out the line-of-sight component.

Parameters:
tfloat or ndarray

Time(s) at which to evaluate the separation.

tpa, p, dt, ep_table, ep_times, coeffs

See _pos_os().

Returns:
rfloat or ndarray

3D star-planet separation [stellar radii]. Arrays of shape (N,) for an array t.