meepmeep.numba3d.cos_v_p_angle_od

meepmeep.numba3d.cos_v_p_angle_od#

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

Cosine of the angle between planet position and a fixed reference vector v, with gradients.

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

The reference vector v is treated as a constant; gradients are computed w.r.t. the seven orbital parameters only.

Parameters:
vndarray, shape (3,)

Fixed reference vector. Need not be unit-norm; the cosine is normalised internally.

tfloat or ndarray

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

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

See _pos_osd().

Returns:
csfloat or ndarray

Cosine of the angle. Arrays of shape (N,) for an array t.

dcsndarray

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