Welcome to SAJAX’s documentation!#
SAJAX is a package that models contamination of exoplanet spectro-photometric time series by active regions (spots, faculae, and flares) on the stellar surface. Its core functionality builds on SAGE (Chakraborty et al. 2024), and it draws additional inspiration from ANTARESS (Bourrier et al. 2024).
The main innovation over SAGE is that SAJAX vectorises the spatial and spectral loops with jax.vmap, making it fast on both CPU and GPU - with no change to the calling code - and fully differentiable, enabling gradient-based inference with tools like NumPyro or Optax.
Key Features#
Spectroscopic light curves - provide a spectrum for the quiet star and the active region; SAJAX returns a light curve at every wavelength.
Multi-planet systems - transits from several planets are modeled simultaneously, each with independent orbital and radius parameters.
Time-evolving active regions - spot/faculae latitude, longitude, size, and contrast can vary over the course of an observation instead of staying fixed. This feature can be used to model flares (see Case 9 in Introduction).
Multiple limb-darkening modes - provide coefficients for your favorite laws (
linear,quadratic,power2,sing3,nonlinear4) or a full intensity profile (intensity_profile).Stellar rotation, inclination, and obliquity - arbitrary rotational phases, stellar-axis inclinations, and a sky-projected spin-orbit angle (
sp_orb) for aligned or misaligned transits are all supported.JAX-native -
jit,vmap, andgradwork out of the box.pip-installable - clean, modern packaging.
Get Started
Tutorials
Reference