meepmeep.numba3d.lambert_phase_curve_od

meepmeep.numba3d.lambert_phase_curve_od#

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

Lambertian phase-curve flux with gradients.

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

Derivative ordering: (tc, p, a, i, e, w, lan, ag, k) - length 9.

Parameters:
tfloat or ndarray

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

agfloat

Geometric albedo.

kfloat

Planet-to-star radius ratio \(R_p/R_\star\).

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

See _pos_osd().

Returns:
fluxfloat or ndarray

Reflected planet-to-star flux ratio. Arrays of shape (N,) for an array time argument.

dfluxndarray

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