HajimeKawahara / exojax

🐈 Automatic differentiable spectrum modeling of exoplanets/brown dwarfs using JAX, compatible with NumPyro and JAXopt
http://secondearths.sakura.ne.jp/exojax/
MIT License
45 stars 14 forks source link

Opacont plus #480

Closed HajimeKawahara closed 5 months ago

HajimeKawahara commented 5 months ago

included Rayleigh scattering and Hminus intoopa

Hminus

    N = 1000
    Tarr = jnp.array([3000.0])
    ne = jnp.array([1.0])
    nh = jnp.array([1.0])
    nu_grid, wav, res = wavenumber_grid(9000.0, 18000.0, N, xsmode="premodit", unit="AA")
    opa = OpaHminus(nu_grid)

    a = opa.logahminus_matrix(Tarr, ne, nh)

Rayleigh

    N=1000
    nu_grid, wav, res = wavenumber_grid(300, 40000.0, N, xsmode="premodit", unit="nm")
    opa = OpaRayleigh(nu_grid,"N2")
    xs = opa.xsvector()
github-actions[bot] commented 5 months ago

Unit Test Results

157 tests  +3   157 :heavy_check_mark: +3   33s :stopwatch: Β±0s βŸβ€„βŸβ€„1 suites Β±0β€‚β€ƒβ€ƒβŸβ€„βŸβ€„0 :zzz: Β±0  βŸβ€„βŸβ€„1 files   Β±0β€‚β€ƒβ€ƒβŸβ€„βŸβ€„0 :x: Β±0 

Results for commit c13d994c. ± Comparison against base commit 44ce8f2b.