Radis

Latest version: v0.14

Safety actively analyzes 638773 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.11.0

Last major release of 2021 with extreme performance improvements when computing large range spectra. And by large range, we mean full-range, i.e. 0 - 30,000 cm-1 !


_See PR https://github.com/radis/radis/pull/400_

---

Changes since [0.10.3](https://github.com/radis/radis/pull/375) (September 2021) :

🔬 [(Physics) Features](https://github.com/radis/radis/issues?q=label%3Aphysics+milestone%3A0.11.0)

- 394 : ExoMol works for isotopes
- 394 : add isotopic abundance in ExoMol calculations [**Important** ! calculations other than main isotopologue were not valid for ExoMol in 0.10.3 ]
- 394 : add default molar_mass, abundances & full-isotope name for all 85 ExoMol species that are not present in HITRAN
- 394 : when not available abundances of molecules are computed from a simple model based on isotopic terrestrial abundance of elements (scripts are available in test_molecule_lists)
- 398 re-add broadening for ExoMol molecules

⚙️[User-interface](https://github.com/radis/radis/issues?q=label%3Ainterface+milestone%3A0.11.0)

- 394 : auto-fetch the full molecule & isotopes list from ExoMol website
- 394 simplify calc_spectrum waverange input : default is now to use `wmin, wmax` (unit-aware), instead of `wavenum_min, wavenum_max` or `wavelength_min, wavelength_max` (old parameters still work)
- 399 bridge to/from [Specutils](https://specutils.readthedocs.io/)
python
spectrum = s.to_specutils()
...
from radis import Spectrum
Spectrum.from_specutils(spectrum)

- 399 option to return SpectrumFactory used in a calc_spectrum computation
python
s, sf = calc_spectrum(.... ,return_factory=True
sf.df1 lines used

- 398 add fetch_hitran() which downloads all lines/isotopes of HITRAN database (Vaex compatible). It is included in `calc_spectrum` and `SpectrumFactory.fetch_databank` by default.
python
calc_spectrum(..., databank=("hitran", "full")) predownload full database & isotopes (once for all)
calc_spectrum(..., databank=("hitran", "range")) download only the required the range & isotope


- 396
- 395 s = s/s2.max() works with units
- 378 write/load Spectrum in HDF5 (the fastest way) with metadata
python
s.to_hdf5()
Spectrum.from_hdf5()

- 378 Spectrum to pandas
python
s.to_pandas()

- 369 new get_baseline functions
python
sb = s_exp.get_baseline(algorithm="als")
s_exp.plot()
sb.plot(nfig="same", lw=3)

![image](https://user-images.githubusercontent.com/16088743/141698640-8b8c795b-20c4-42ad-9815-934a281930b4.png)
- 254

🏃 [Performance improvement](https://github.com/radis/radis/issues?q=label%3Aperformance+milestone%3A0.11.0)

- ⭐ 398 make **vaex the default memory-mapping-engine** for radis (Spyder IDE-users: you may want to deactivate this until https://github.com/spyder-ide/spyder/issues/16183 is fixed. There is a new key in the config file for that!)
- ⭐ 398 **only load required columns** by default (makes it 8-20x faster to load databases)
> Example : full HITEMP-CO2 database (0 - 30,000 cm-1 loaded in 5s instead of 80 !)
- 394 download HITRAN full-range makes HITRAN calculations faster (no more download after the first time)
- ⭐ 386 388 make it possible to compute full-range spectra : RADIS automatically switches to a **sparse-wavenumber implementation of the DLM/DIT algorithm**, based on a scarcity criterion `Ngridpoints/Nlines > 1`

_CO2/H2O full range, computed from HITRAN, for a 1-km homogeneous layer of atmosphere at 300 K, 1 bar_
python
import astropy.units as u

from radis import calc_spectrum
calc_spectrum(
wmin=0.5 * u.um,
wmax=15 * u.um, cm-1
mole_fraction={"CO2": 420e-6, "H2O": 0.02},
isotope="1,2,3",
pressure=1.01325, bar
Tgas=300, K
path_length=1e5, 1 km in cm
verbose=2,
databank="hitran",
wstep="auto",
)

![image](https://user-images.githubusercontent.com/16088743/141697707-adabea55-c6a7-4265-9921-4a631d6b9ddb.png)


🐛 [Bug fixes](https://github.com/radis/radis/issues?q=label%3Abug+milestone%3A0.11.0)

- 393
- 391
- 381 , 385
- 356
- 338 (not fully fixed, but we know the problem. Spyder-IDE users do not use this mode)

📝 [Documentation](https://github.com/radis/radis/issues?q=label%3Adocumentation+milestone%3A0.11.0)

- 389

🏁 [CI / Dev / Tests](https://github.com/radis/radis/issues?q=label%3Aci-test+milestone%3A0.11.0)

nothing new

🏗️ [Refactor / change in architecture](https://github.com/radis/radis/issues?q=label%3Arefactor+milestone%3A0.11.0)

- 392 : of how we compute partition functions



---





What's Changed
* Improved hdf5 manager : HDF5 write/load of Spectrum files & HITRAN files by erwanp in https://github.com/radis/radis/pull/378
* fix line survey tool with new radisdb-hitemp format by erwanp in https://github.com/radis/radis/pull/383
* Fixes: Issue/381 by anandxkumar in https://github.com/radis/radis/pull/385
* Add/sparse waverange optim by erwanp in https://github.com/radis/radis/pull/386
* Prepare support for NIST extension by erwanp in https://github.com/radis/radis/pull/384
* doc improvements by erwanp in https://github.com/radis/radis/pull/389
* Refactor - simplify Qgas by erwanp in https://github.com/radis/radis/pull/392
* Exomol update by erwanp in https://github.com/radis/radis/pull/394
* Fully-Sparse wavenumber arrays by erwanp in https://github.com/radis/radis/pull/388
* Make line_survey more flexible for extenral codes by erwanp in https://github.com/radis/radis/pull/396
* Fixes 356 by anandxkumar in https://github.com/radis/radis/pull/397
* Improve SpecDatabase (bug correction and update) by CorentinGrimaldi in https://github.com/radis/radis/pull/390
* Dimensioned Spectrum.max() function by erwanp in https://github.com/radis/radis/pull/395
* Add specutils bridge by erwanp in https://github.com/radis/radis/pull/399
* Make Vaex the default HDF5 engine, add Exomol hdf5 support by erwanp in https://github.com/radis/radis/pull/398
* Fix of get_baseline() function of Spectrum class 368 by BlehMaks in https://github.com/radis/radis/pull/369
* Updated convolve_with_slit with warnings if instrumental function has large near-zero wings by gh4ag in https://github.com/radis/radis/pull/283
* 0.11.0 by erwanp in https://github.com/radis/radis/pull/400


**Full Changelog**: https://github.com/radis/radis/compare/0.10.3...0.11.0

0.10.3

Minor update of 0.10 with a very important fix if you're combining equilibrium & non-equilibrium spectra with MergeSlabs

(see pull request : https://github.com/radis/radis/pull/375 )

---

Changes since [0.10.1](https://github.com/radis/radis/pull/273) (August 2021) :

🔬 [(Physics) Features](https://github.com/radis/radis/issues?q=label%3Aphysics+milestone%3A0.10.3)

- 374 includes CN for ExoMol, by minouHub

⚙️[User-interface](https://github.com/radis/radis/issues?q=label%3Ainterface+milestone%3A0.10.3)

Nothing new

🏃 [Performance improvement](https://github.com/radis/radis/issues?q=label%3Aperformance+milestone%3A0.10.3)

- 373 parallel download & parsing of CO2/H2O HITEMP files, activated by default, by brendandrury

🐛 [Bug fixes](https://github.com/radis/radis/issues?q=label%3Abug+milestone%3A0.10.3)

- 370 , 371 by CorentinGrimaldi (very important fix, if merging equilibrium and non-LTE spectra with MergeSlabs you should update)
- 362 by Springder
- 358

📝 [Documentation](https://github.com/radis/radis/issues?q=label%3Adocumentation+milestone%3A0.10.3)

- 351
- 365

🏁 [CI / Dev / Tests](https://github.com/radis/radis/issues?q=label%3Aci-test+milestone%3A0.10.3)

Nothing here

🏗️ [Refactor / change in architecture](https://github.com/radis/radis/issues?q=label%3Arefactor+milestone%3A0.10.3)

Not here neither

0.10.2

Fixing packaging of 0.10.0 273

0.10.1

0.10.0

[*(see Pull request and code changes here)*](https://github.com/radis/radis/pull/273)

4th release of RADIS in 2021, and the largest so far !

New physics with ExoMol support, by-default truncations to account for subLorentzian behaviors, custom abundances for non-terrestrial atmospheres. **Major** improvements in performances (reduced memory consumption, faster database loading, up to 10x faster small CPU spectra, large range spectra are 2-30x faster, 3500x faster nonequilibrium partition functions). A few handy features for post-processing (custom plotting themes, ruler tool) or for the calculations (automatic wavenumber grid, fitting methods, new profiler, new choice of truncation & effect of neighbour lines), and even a new method to automatically cite the papers that contributed to your calculation ! 🏃

And also, [lot's of new Examples](https://radis.readthedocs.io/en/latest/auto_examples/index.html) of what can be done with RADIS :

[![image](https://user-images.githubusercontent.com/16088743/130837215-fedb5e02-4827-429b-b891-eb920839f431.png)](https://radis.readthedocs.io/en/latest/auto_examples/index.html)


10 people contributed to this version, including the major works of anandxkumar and gagan-aryan on their [OpenAstronomy](https://openastronomy.org/gsoc/gsoc2021/#/projects) GSOC-2021 projects. 👏

[🐦 Twitter feed](https://twitter.com/radis_radiation/status/1432308606054060032)

---

Changes since [0.9.29](https://github.com/radis/radis/pull/224) (April 2021) :

🔬 [(Physics) Features](https://github.com/radis/radis/issues?q=label%3Aphysics+milestone%3A0.10.1)

- 319, 320 ExoMol Support
- 340, 343 Adds default line truncation at 50 cm-1 to account for sublorentzian behaviors in the far wings. Chi-factors will be implemented in the next version.
- 301 for non terrestrial atmospheres

Also notice that the HITRAN team has completed major additions to the database (see "Database Update" on the the [HITRAN website](https://hitran.org/home/)), and these are available in RADIS with `databank='hitran'`

- 288

⚙️[User-interface](https://github.com/radis/radis/issues?q=label%3Ainterface+milestone%3A0.10.1)

- 251 `cutoff=None` is valid and means `cutoff=0`
- 250 Automatic wavenumber grid resolution with `wstep='auto'` (see Performance)
- 281
- 291 a ruler to measure offsets or linewidths directly on RADIS `plot(show_ruler=True)` and `plot_diff(show_ruler=True)`
- RADIS updated to support [Fitroom](https://github.com/radis/fitroom), a multi-dimensional fit environment. See the [1min-video](https://user-images.githubusercontent.com/16088743/120166810-4ac14980-c1fd-11eb-9dd5-8fb037db8793.mp4
)
- 348 to have your own plotting themes, like `seaborn`
- 336 fitting functions, see the the [fitting Examples](https://radis.readthedocs.io/en/latest/auto_examples/plot_multi_temperature_fit.html#sphx-glr-auto-examples-plot-multi-temperature-fit-py)
- 343 : adds two independant parameters choice of `truncation` & effect of `neighbour_lines` (replaces the old parameter `broadening_max_width`
- 345 : `s.cite()` to generate your Bibtex entry


🏃 [Performance improvement](https://github.com/radis/radis/issues?q=label%3Aperformance+milestone%3A0.10.1)

- 250 Automatic wavenumber grid resolution by anandxkumar : makes sure you always have the right balance in between accuracy and performance. Will become the default mode in 0.9.31, try it before by setting `wstep='auto'` in calc_spectrum or SpectrumFactory . Feedback welcome !
- 233 234 Fast Cython implementation of add_at in LDM method, by dcmvdbekerom
- 252 in SpectrumFactory, do not load rovibrational energies (needed for nonequilibrium calculations) unless we actually need nonequilibrium calculations
- 286 : only downloads the HITEMP files you need, i.e., not the full wavenumber range.
- 287 : reduced memory usage and up to 2x faster linestrength calculations by gagan-aryan
- 303 : about 20% faster to load .spec files
- 304 up to 10x faster to calculate very small spectra (~1 cm-1), by minouHub
- 306 : up to x20 faster database loading with `vaex` engine
- 309
- 316 500-3500x faster nonequilibrium partition functions
- 325 new profilers
- 323 : 2-30x faster spectra in LDM+Voigt
- 343 : LDM + Voigt becomes the default, making large range spectra 2-30x faster. See [this benchmark](https://anandxkumar.github.io/Benchmark_Visualization_GSoC_2021/LDM%20UPDATED/Spectral%20points(NLines%20and%20Wstep%20constant)%20vs%20Calculation%20Time/Spectral%20points(NLines%20and%20Wstep%20constant)%20vs%20Calculation%20Time.html) by anandxkumar

> Note : some performance improvements are not activated by default in this version. See `partfunc="tabulation"` 316 , `wstep='auto'` 250 , or `fetch_hitemp("OH", engine="vaex")` 306 . Try them !

🐛 [Bug fixes](https://github.com/radis/radis/issues?q=label%3Abug+milestone%3A0.10.1)

- 211 264 do not parse local/global quanta if missing values : fixes problem with HITEMP H2O unlabelled lines
- 248 fix error when fetching hitran isotopes with no lines in the spectral range by CorentinGrimaldi
- 260 slit shape was not saved in the Spectrum conditions, fix by CorentinGrimaldi
- 257 fix reading of single path in config file entry by CorentinGrimaldi
- 218 219 270 fix automatic correction of slit dispersion in apply_slit() by CorentinGrimaldi
- 277
- 280 (STILL OPEN)
- 282 by gh4ag
- 298
- 294
- 308
- 326

📝 [Documentation](https://github.com/radis/radis/issues?q=label%3Adocumentation+milestone%3A0.10.1)

- 261 add documentation of radis.json
- 242 256 improve error messages
- 263 246 235 231 improve docs
- 230 links to source code in online docs, and clickable flow chart
- 265 240 add default arguments automatically (still WIP)
- 293
- 315
- 331

🏁 [CI / Dev / Tests](https://github.com/radis/radis/issues?q=label%3Aci-test+milestone%3A0.10.1)

- 125
- 324

🏗️ [Refactor / change in architecture](https://github.com/radis/radis/issues?q=label%3Arefactor+milestone%3A0.10.1)

- Cython module architecture in 234
- 287 , 302
- 344 will prevent many user-problems with "convolved and non-convolved" quantities
- 347 by MVAMULYA
- 321

---


And also:
- [RADIS-Lab](https://radis.github.io/radis-lab/) was updated with preconfigured HITEMP-H2O lines. Try it out, or share it : no install needed (will be updated in the coming days with RADIS 0.9.30 support).
- 125 One can now chat with the community directly [from the RADIS website](https://radis.github.io/). Ask all your questions !
- dcmvdbekerom gave a talk describing the DIT algorithm that powers RADIS. The 15-min video is available [here](https://drive.google.com/open?id=1U4pXo-fqve2I4Oym3JgDjQZDsc35Uudy).
- an automatically differentiated version of the DIT algorithm has been implemented in the [Exojax](https://github.com/HajimeKawahara/exojax) code by HajimeKawahara, to model exoplanets, brown drafts and generally for inverse problems in radiative transfer. Have a look !

0.9.29

3rd release of RADIS in 2021. Mainly many small bug/doc fixes. Among the new stuff: new configuration file format, lazy-loading for SpecDatabase, fast apply-slit, and Sphinx Gallery Examples. 🚀

Changes since [0.9.28](https://github.com/radis/radis/pull/199) (Feb 2021) :

🔬 [(Physics) Features](https://github.com/radis/radis/issues?q=label%3Aphysics+milestone%3A0.9.29)

Nothing new in the code. However, we released the first Spectroscopy Tutorials : https://github.com/radis/spectro101 . Have a look, feedbacks are welcome ! Future tutorials are discussed [in the Wiki](https://github.com/radis/radis/wiki/%F0%9F%8E%93-Spectroscopy-101-with-RADIS) and on [💬 Slack #spectroscopy-tutorials](https://radis-radiation.slack.com/archives/C01N7R9728M) .

⚙️[User-interface](https://github.com/radis/radis/issues?q=label%3Ainterface+milestone%3A0.9.29)

- 212 **new configuration file format** : `~radis.json` replaces `~/.radis`. Will allow to use global parameters (for plots, etc.). Auto-conversion of your existing files by anandxkumar !
- 229 reduce warning/error threshold of too-few-gridpoints-per-line from 5/2 to 3/1
- 201 RADIS works for non-HITRAN molecules (they're not implemented, but you can define your own)

🏃 [Performance improvement](https://github.com/radis/radis/issues?q=label%3Aperformance+milestone%3A0.9.29)

- 227 CO2 3-T Treanor calculations up to 5x faster when calling [non_eq_spectrum](https://radis.readthedocs.io/en/latest/source/radis.lbl.factory.html#radis.lbl.factory.SpectrumFactory.non_eq_spectrum) a 2nd time
- 193 227 fetching of Evib and Erot about ~30% faster for CO2 Treanor, and CO.
- 206 **lazy-loading feature** by gugzy when working with a [SpecDatabase](https://radis.readthedocs.io/en/master/source/radis.tools.database.html#radis.tools.database.SpecDatabase) (i.e., a folder of spectra) : only load them on demand (when using `SpecDatabase.get(Tgas=.., etc.)`). Setting up the database is instantaneous, and generate a summary csv file showing all calculation/experimental conditions !
- 220 **Apply_slit is now 10x faster** thanks to CorentinGrimaldi

🐛 [Bug fixes](https://github.com/radis/radis/issues?q=label%3Abug+milestone%3A0.9.29)

- 81 214 217 fix a wavelength range mismatch
- 203 fix direct HITEMP download for nonequilibrium calculations (CO)
- 202 fixed export_lines parameter not working in calc_spectrum
- 111 191 improve error message with unlabelled CO2 lines of HITEMP, and suggest how to fix it, by mverleg
- 78 80 gagan-aryan fixed errors with missing configuration file parameters,

📝 [Documentation](https://github.com/radis/radis/issues?q=label%3Adocumentation+milestone%3A0.9.29)

- 225 add more equations in function docstrings, automatically generated from Python code with [pytexit](https://pytexit.readthedocs.io/)
- 221 docs improvements
- 216 fix rendering of radis flow chart by anandxkumar
- 209 mention HAPI when using Astroquery
- 205 **add Sphinx gallery examples** (we still need more of them : 136 is open!)
- 207 improve Contributing guide

🏁 [Reliability / Tests](https://github.com/radis/radis/issues?q=label%3Aci-test+milestone%3A0.9.29)

nothing here

🏗️ [Refactor / change in architecture](https://github.com/radis/radis/issues?q=label%3Arefactor+milestone%3A0.9.29)

nothing neither

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.