meepmeep.numba3d.pos_o

Contents

meepmeep.numba3d.pos_o#

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

Planet (x, y, z) position for any orbital phase.

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

Parameters:
tfloat or ndarray

Time(s) at which to evaluate the position.

tpafloat

Periastron time anchoring the expansion-point grid.

pfloat

Orbital period [days].

dtfloat

ep_table bucket width in fraction of the period.

ep_tablendarray of int

Time-to-expansion-point lookup table.

ep_timesndarray, shape (npt,)

Normalised expansion-point phases in [0, 1].

coeffsndarray, shape (npt, 3, 5)

Per-expansion-point Taylor coefficient matrices from solve3d_orbit().

Returns:
x, y, zfloat or ndarray

Planet position in units of the stellar radius. x, y are the sky-plane coordinates; z is the line-of-sight depth (positive toward the observer). Arrays of shape (N,) for an array t.