meepmeep.numba3d.ep_ix

Contents

meepmeep.numba3d.ep_ix#

meepmeep.numba3d.ep_ix(t, tpa, p, dt, ep_table) int[source]#

Return the expansion-point index for a single time.

Epoch-folds t into one period and dispatches it to the appropriate expansion point via ep_table.

Parameters:
tfloat

Time at which to look up the expansion point.

tpafloat

Periastron time anchoring the expansion-point grid. Note the convention difference: the high-level Orbit API takes the transit-center time as tc and converts it to periastron time before calling functions in this module (see Orbit.__init__).

pfloat

Orbital period [days].

dtfloat

Width of one ep_table bucket in fraction of the period.

ep_tablendarray of int

Time-to-expansion-point lookup table built by create_expansion_points().

Returns:
ixint

Index into coeffs / ep_times for the relevant expansion point.