meepmeep.numba3d.sep_od

Contents

meepmeep.numba3d.sep_od#

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

Sky-projected planet-star separation 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 (_sep_osd()) or vector (sep_ovd()) kernel at compile time (inside @njit) or at call time (pure Python).

Returns \(\sqrt{x^2 + y^2}\) together with its gradient w.r.t. the seven orbital parameters. The chain rule \(\partial d/\partial \theta = (p_x \partial p_x / \partial \theta + p_y \partial p_y / \partial \theta)/d\) is applied inside sep_cd(); this dispatcher just locates the expansion point.

Parameters:
tfloat or ndarray

Time at which to evaluate the separation and gradient.

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

See pos_od().

Returns:
dfloat or ndarray

Sky-projected separation [stellar radii]. Arrays of shape (N,) for an array t.

ddndarray

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