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
56 stars 14 forks source link

wavenumber and wavelength descending/ascending order #391

Closed HajimeKawahara closed 1 year ago

HajimeKawahara commented 1 year ago

Currently, wavenumber_grid returns nu_grid and wav both in ascending order. So, for instance, we should plot

plt.plot(nu_grid, flux)
plt.plot(wav[::-1], flux)

this might be confusing. rethink user-friendly (how?) and developer-friendly (wavenumber in ascending order) definition.