Closed lgrcia closed 1 month ago
A light_curve function taking into account transit and occultations of emissive (optionally limb darkened) bodies.
This function takes a SurfaceSystem in so that the limb darkening and amplitude of each body is defined using the Surface object.
SurfaceSystem
Surface
Example:
import jax.numpy as jnp import matplotlib.pyplot as plt from jaxoplanet.orbits import keplerian from jaxoplanet.experimental.starry.surface import Surface from jaxoplanet.experimental.starry.orbit import SurfaceSystem from jaxoplanet.light_curves.emission import light_curve central = keplerian.Central() system = SurfaceSystem(central, Surface(u=(0.1, 0.2), amplitude=1.0)).add_body( radius=0.5, period=1.0, surface=Surface(amplitude=0.5, normalize=False) ) period = system.bodies[0].period.magnitude time = jnp.linspace(-0.8 * period, 0.8 * period, 1000) plt.plot(time, light_curve(system)(time).sum(1)) plt.xlabel("time (days)") plt.ylabel("flux")
A light_curve function taking into account transit and occultations of emissive (optionally limb darkened) bodies.
This function takes a
SurfaceSystem
in so that the limb darkening and amplitude of each body is defined using theSurface
object.Example: