README.md
# ExoJAX
[](https://github.com/HajimeKawahara/exojax/blob/develop/LICENSE)
[](http://secondearths.sakura.ne.jp/exojax/)
[](http://arxiv.org/abs/2105.14782)
[](https://arxiv.org/abs/2410.06900)
[-orange)](https://iopscience.iop.org/article/10.3847/1538-4365/ac3b4d)
<a href="https://codeclimate.com/github/HajimeKawahara/exojax/maintainability"><img src="https://api.codeclimate.com/v1/badges/97c5e8835f3ef9c4ad7c/maintainability" /></a>
Differentiable spectral modelling of exoplanets/brown dwarfs/M dwarfs using [JAX](https://github.com/jax-ml/jax)!
Read [the docs](http://secondearths.sakura.ne.jp/exojax) 🐕.
In short, ExoJAX allows you to do gradient based optimizations, HMC-NUTS, nested sampling, and SVI using the latest database.
ExoJAX is at least compatible with
- PPLs: [NumPyro](https://github.com/pyro-ppl/numpyro), [blackjax](https://github.com/blackjax-devs/blackjax), [bayeux](https://github.com/jax-ml/bayeux)
- Optimizers: [Optax](https://github.com/google-deepmind/optax), [JAXopt](https://github.com/google/jaxopt)
<img src="https://github.com/user-attachments/assets/70d4291b-f818-4204-ab96-b3bd6c99c48f" Titie="exojax" Width=850px>
<details><summary>ExoJAX Classes</summary>
- Databases: *db (mdb: molecular, adb: atomic, cdb:continuum, pdb: particulates)
- Opacity Calculators: opa (Voigt profile, CIA, Mie/Rayleigh scattering etc)
- Atmospheric Radiative Transfer: art (emission w, w/o scattering, reflection, transmission)
- Spectral Operator: sop (planet rotation, instrumental broadening)
- Atmospheric Microphysics: amp (clouds etc)
- GPU-memory efficient Layer-by-layer opacity and transfer computations: opart
</details>
## Get Started
See [this page](http://secondearths.sakura.ne.jp/exojax/tutorials/get_started.html) for the first step!
## Real Examples (external)
- :star: [exojaxample_WASP39b](https://github.com/sh-tada/exojaxample_WASP39b) : An example of HMC-NUTS for actual hot Saturn (JWST/ERS, NIRSPEC/G395H)
- :star: [exojaxample_jupiter](https://github.com/HajimeKawahara/exojaxample_jupiter) : An example of HMC-NUTS for actual Jupiter reflection spectrum
## References
[-orange)](https://iopscience.iop.org/article/10.3847/1538-4365/ac3b4d)
[](https://arxiv.org/abs/2410.06900)
- Paper I: Kawahara, Kawashima, Masuda, Crossfield, Pannier, van den Bekerom, [ApJS 258, 31 (2022)](https://iopscience.iop.org/article/10.3847/1538-4365/ac3b4d)
- Paper II: Kawahara, Kawashima, Tada et al. [AAS under review](https://arxiv.org/abs/2410.06900)
## License
🐈 Copyright 2020-2025 ExoJAX contributors. ExoJAX is publicly available under the MIT license.