meepmeep.numba3d.star_planet_distance_od

meepmeep.numba3d.star_planet_distance_od#

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

3D star-planet distance and orbital-parameter derivatives.

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

Returns \(r = \sqrt{x^2 + y^2 + z^2}\) and \(\partial r/\partial \theta_k = (x\,\partial x/\partial \theta_k + y\,\partial y/\partial \theta_k + z\,\partial z/\partial \theta_k)/r\).

Parameters:
tfloat or ndarray

Time(s) at which to evaluate the separation and gradient.

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

See _pos_osd().

Returns:
rfloat or ndarray

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

drndarray

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