| |badge_pypi| |badge_pypistats| |badge_article1| |badge_article2| |badge_docs| |badge_binder| | |badge_slack| |badge_contributors| |badge_travis| |badge_coverage| |badge_code_quality| |badge_asv| |badge_license|
RADIS <https://radis.readthedocs.io/>
__
RADIS is a fast line-by-line code for high resolution infrared molecular spectra (emission / absorption, equilibrium / non-LTE) based on HITRAN/HITEMP/ExoMol.
It includes post-processing tools to compare experimental spectra and spectra calculated with RADIS or other spectral codes.
User guide, install procedure and examples are available on the RADIS Website <http://radis.readthedocs.io/>
__:
=============== Getting Started ===============
Assuming you have Python installed with pip then use this command to install::
pip install radis -v
if you want to install radis through conda then use this command to ::
conda install radis -c conda-forge
or with mamba::
mamba install radis
That's it! You can now run your first example below.
If you encounter any issue, or to upgrade the package later, please refer to the
detailed installation procedure <https://radis.readthedocs.io/en/latest/dev/developer.html#label-install>
__ .
Calculate a CO equilibrium spectrum from the HITRAN database, using the
calc_spectrum <https://radis.readthedocs.io/en/latest/source/radis.lbl.calc.html#radis.lbl.calc.calc_spectrum>
function. Output is a
Spectrum object <https://radis.readthedocs.io/en/latest/spectrum/spectrum.html#label-spectrum>
: ::
from radis import calc_spectrum
s = calc_spectrum(1900, 2300, # cm-1
molecule='CO',
isotope='1,2,3',
pressure=1.01325, # bar
Tgas=700, # K
mole_fraction=0.1,
path_length=1, # cm
databank='hitran' # or 'hitemp'
)
s.apply_slit(0.5, 'nm') # simulate an experimental slit
s.plot('radiance')
.. figure:: https://radis.readthedocs.io/en/latest/_images/co_spectrum_700K.png :scale: 60 %
The Quick Start examples automatically downloads the line databases from HITRAN-2016 <https://radis.readthedocs.io/en/latest/references/references.html#hitran-2016>
, which is valid for temperatures below 700 K.
For high temperature cases, you may need to use other line databases such as
HITEMP-2010 <https://radis.readthedocs.io/en/latest/references/references.html#hitemp-2010>
(typically T < 2000 K) or CDSD-4000 <https://radis.readthedocs.io/en/latest/references/references.html#cdsd-4000>
(T < 5000 K). HITEMP can also be downloaded
automatically, or can be downloaded manually and described in a ~/radis.json
Configuration file <https://radis.readthedocs.io/en/latest/lbl/lbl.html#label-lbl-config-file>
.
More complex examples <https://radis.readthedocs.io/en/latest/examples.html#label-examples>
will require to use the SpectrumFactory <https://radis.readthedocs.io/en/latest/source/radis.lbl.factory.html#radis.lbl.factory.SpectrumFactory>
class, which is the core of RADIS line-by-line calculations.
calc_spectrum <https://radis.readthedocs.io/en/latest/source/radis.lbl.calc.html#radis.lbl.calc.calc_spectrum>
is a wrapper to SpectrumFactory <https://radis.readthedocs.io/en/latest/source/radis.lbl.factory.html#radis.lbl.factory.SpectrumFactory>
for the simple cases.
Experimental spectra can be loaded using the experimental_spectrum <https://radis.readthedocs.io/en/latest/source/radis.spectrum.models.html#radis.spectrum.models.experimental_spectrum>
function
and compared with the plot_diff <https://radis.readthedocs.io/en/latest/source/radis.spectrum.compare.html#radis.spectrum.compare.plot_diff>
function. For instance::
from numpy import loadtxt
from radis import experimental_spectrum, plot_diff
w, I = loadtxt('my_file.txt').T # assuming 2 columns
sexp = experimental_spectrum(w, I, Iunit='mW/cm2/sr/nm')
plot_diff(sexp, s) # comparing with spectrum 's' calculated previously
Typical output of plot_diff <https://radis.readthedocs.io/en/latest/source/radis.spectrum.compare.html#radis.spectrum.compare.plot_diff>
__:
.. image:: docs/spectrum/cdsd4000_vs_hitemp_3409K.svg :scale: 60 % :target: https://radis.readthedocs.io/en/latest/spectrum/spectrum.html#compare-two-spectra :alt: https://radis.readthedocs.io/en/latest/_images/cdsd4000_vs_hitemp_3409K.svg
Refer to the Examples <https://radis.readthedocs.io/en/latest/examples/examples.html>
section for more examples, and to the
Spectrum page <https://radis.readthedocs.io/en/latest/spectrum/spectrum.html>
for more post-processing functions.
RADIS supports GPU acceleration for super-fast computation of spectra::
from radis import SpectrumFactory
from radis.tools.plot_tools import ParamRange
sf = SpectrumFactory(
2100,
2400, # cm-1
molecule="CO2",
isotope="1,2,3",
wstep=0.002,
)
sf.fetch_databank("hitemp")
s = sf.eq_spectrum_gpu_interactive(
var="radiance",
Tgas=ParamRange(300.0, 2500.0, 1100.0), # K
pressure=ParamRange(0.1, 2, 1), # bar
mole_fraction=ParamRange(0, 1, 0.8),
path_length=ParamRange(0, 1, 0.2), # cm
slit_FWHM=ParamRange(0, 1.5, 0.24), # cm-1
emulate=False, # runs on GPU
plotkwargs={"nfig": "same", "wunit": "nm"},
)
.. image:: https://raw.githubusercontent.com/dcmvdbekerom/radis/gpu_widget_new_branch/docs/examples/GPU_spectrum.png
Refer to GPU Spectrum Calculation on RADIS <https://radis.readthedocs.io/en/latest/lbl/lbl.html#calculating-spectrum-using-gpu>
__ for more details on GPU acceleration.
======================================= π± Try online (no installation needed!) =======================================
A simple web-app for RADIS under development.
.. image:: https://user-images.githubusercontent.com/16088743/103406077-b2457100-4b59-11eb-82c0-e4de027a91c4.png :target: https://radis.app/ :alt: https://radis.app/
See more on GitHub <https://github.com/suzil/radis-app>
__
An online environment for advanced spectrum processing and comparison with experimental data :
.. image:: https://user-images.githubusercontent.com/16088743/103448773-7d8f0200-4c9e-11eb-8bf1-ce3385519b77.png :target: https://radis.github.io/radis-lab/ :alt: https://radis.github.io/radis-lab/
π± Try it : https://radis.github.io/radis-lab/
See more on GitHub <https://github.com/radis/radis-lab>
__
==== Cite ====
Articles are available at |badge_article1| |badge_article2|
For reproducibility, do not forget to cite the line database used, and the spectroscopic constants
if running nonquilibrium calculations. See How to cite? <https://radis.readthedocs.io/en/latest/references/references.html#cite>
__
=============== Developer Guide ===============
Want to contribute to RADIS ? Join the Slack community and we'll help you through the process.
Want to get started immediatly ? Nice. Have a look at the CONTRIBUTING.md <./CONTRIBUTING.md>
__ guide.
|badge_contributors| |badge_slack|
You need to know more about Spectroscopy ? We're working on Tutorials to
make spectroscopy available to everyone. For the moment, join the
Slack channel <https://radis-radiation.slack.com/archives/C01N7R9728M>
__ .
RADIS internals are described in the Developer Guide <https://radis.readthedocs.io/en/latest/dev/developer.html>
__
.. image:: https://radis.readthedocs.io/en/latest/_images/RADIS_flow_chart.svg :target: https://radis.readthedocs.io/en/latest/dev/architecture.html#label-dev-architecture :alt: https://radis.readthedocs.io/en/latest/_images/RADIS_flow_chart.svg
Matlab users can seamlessly access Python modules
Here's what's you'll need:
```
py.radis.calc_spectrum()
```
The code is available on this repository under
GNU LESSER GENERAL PUBLIC LICENSE (v3) <./LICENSE>
_ |badge_license|
If encountering any problem, first refer to the list of known
Issues <https://github.com/radis/radis/issues?utf8=%E2%9C%93&q=is%3Aissue>
__ on GitHub.
We appreciate your feedback and suggestions!
For any question, please join the discussion channel on Gitter |badge_gitter|, Slack |badge_slack|
or the Q&A Forum <https://groups.google.com/forum/#!forum/radis-radiation>
__
Finally, you can also suggest or vote for new features below:
.. image:: https://feathub.com/radis/radis?format=svg :target: https://feathub.com/radis/radis
========== References ==========
Documentation: |badge_docs|
Help: |badge_gitter| |badge_slack| Q&A forum <https://groups.google.com/forum/#!forum/radis-radiation>
__
Articles: |badge_article1| |badge_article2|
Source Code: |badge_stars| |badge_contributors| |badge_license|
Test Status: |badge_travis| |badge_coverage| |badge_asv|
PyPi Repository: |badge_pypi| |badge_pypistats|
Interactive Examples: radis_examples <https://github.com/radis/radis-examples>
__ |badge_examples| |badge_binder|
Fitroom <https://github.com/radis/fitroom>
__ (for advanced multidimensional fitting).
See awesome-spectra <https://github.com/erwanp/awesome-spectra>
__ |badge_awesome_spectra|
.. image:: https://github.com/radis/radis/blob/master/docs/radis_ico.png :target: https://radis.readthedocs.io/ :scale: 50 % :alt: RADIS logo
.. |CO2| replace:: CO\ :sub:2
.. |badge_docs| image:: https://readthedocs.org/projects/radis/badge/ :target: https://readthedocs.org/projects/radis/ :alt: Documentation Status
.. |badge_article1| image:: https://zenodo.org/badge/doi/10.1016/j.jqsrt.2018.09.027.svg :target: https://linkinghub.elsevier.com/retrieve/pii/S0022407318305867 :alt: Article
.. |badge_article2| image:: https://zenodo.org/badge/doi/10.1016/j.jqsrt.2020.107476.svg :target: https://linkinghub.elsevier.com/retrieve/pii/S0022407320310049 :alt: Spectral Synthesis Algorithm
.. |badge_stars| image:: https://img.shields.io/github/stars/radis/radis.svg?style=social&label=Star :target: https://github.com/radis/radis/stargazers :alt: GitHub
.. |badge_contributors| image:: https://img.shields.io/github/contributors/radis/radis.svg :target: https://github.com/radis/radis/graphs/contributors :alt: Contributors
.. |badge_license| image:: https://img.shields.io/badge/License-LGPL3-blue.svg :target: ./License.md :alt: License
.. |badge_travis| image:: https://img.shields.io/travis/radis/radis.svg :target: https://travis-ci.com/radis/radis :alt: Tests
.. |badge_coverage| image:: https://codecov.io/gh/radis/radis/branch/develop/graph/badge.svg :target: https://codecov.io/gh/radis/radis :alt: Coverage
.. |badge_code_quality| image:: https://img.shields.io/lgtm/grade/python/g/radis/radis.svg?logo=lgtm&logoWidth=18) :target: https://lgtm.com/projects/g/radis/radis/alerts :alt: Code Quality
.. |badge_asv| image:: http://img.shields.io/badge/benchmarked%20by-asv-blue.svg?style=flat :target: https://github.com/radis/radis-benchmark :alt: Benchmarks
.. |badge_pypi| image:: https://img.shields.io/pypi/v/radis.svg :target: https://pypi.python.org/pypi/radis :alt: PyPI
.. |badge_pypistats| image:: https://img.shields.io/pypi/dw/radis.svg :target: https://pypistats.org/packages/radis :alt: Downloads
.. |badge_examples| image:: https://img.shields.io/github/stars/radis/radis-examples.svg?style=social&label=Star :target: https://github.com/radis/radis-examples :alt: Examples
.. |badge_awesome_spectra| image:: https://img.shields.io/github/stars/erwanp/awesome-spectra.svg?style=social&label=Star :target: https://github.com/erwanp/awesome-spectra :alt: Examples
.. |badge_binder| image:: https://mybinder.org/badge.svg :target: https://radis.github.io/radis-lab/ :alt: https://radis.github.io/radis-lab/
.. |badge_gitter| image:: https://badges.gitter.im/Join%20Chat.svg :target: https://gitter.im/radis-radiation/community :alt: Gitter
.. |badge_slack| image:: https://img.shields.io/badge/slack-join-green.svg?logo=slack :target: https://radis.github.io/slack-invite/ :alt: Slack
The molecular spectral line intensity in the HITRAN database as a function of temperature was measured experimentally at 298 K. Therefore, if calculations need to be performed at different temperatures, temperature correction of the spectral line intensity is required.The spectral line intensity in the HITRAN database is measured at standard atmospheric pressure, so if calculations need to be made at different pressures, pressure correction of spectral line intensity is required.
The HITRAN database is corrected before calculation.
radis online
Windows
Line 1768, the small change of "path" to "filtered_path"
When I tried to run the code, the "h5" was deleted and error was shown that the desired "h5" file was not found. I got the follwoing error:
Loading Line databank Opening file C:\Users\mraga\Databases\cdsd4000\CDSD4000_4150_5650\cdsd_01768_01770.h5 (format=CDSD 4000, cache=True) Last Modification time: Mon Feb 20 15:58:05 2023 File C:\Users\mraga\Databases\cdsd4000\CDSD4000_4150_5650\cdsd_01768_01770.h5 deprecated: Metadata in file C:\Users\mraga\Databases\cdsd4000\CDSD4000_4150_5650\cdsd_01768_01770.h5 dont match expected values. See comparison below: Expected File Key Expected Got
Deleting it!
Traceback (most recent call last):
File "C:\Users\mraga\Mragank_tuto_CO2_CDSD.py", line 32, in
So basically, it deleted the file by itself and gave me the error that the file was not found! . . .
This pull request is to address ...
Fixes #
Specifications: MacOS Ventura 13.0 Macbook Pro, M1 Python 3.9.2 Pip 23.0.1
When running the command pip3 install -r requirements.txt
, I will get the following error:
```bash Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
Γ Getting requirements to build wheel did not run successfully.
β exit code: 1
β°β> [10 lines of output]
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
cpuinfo failed, assuming no CPU features: 'flags'
* Using Python 3.9.2 (v3.9.2:1a79785e3e, Feb 19 2021, 09:08:59)
* Found cython 0.29.33
* USE_PKGCONFIG: True
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the HDF5_DIR
environment
variable or by using the --hdf5
command-line option.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error ```
This is similar to the bug that I found while trying to install radis-app. See https://github.com/suzil/radis-app/issues/683
The solution that helped was
bash
brew install hdf5
export HDF5_DIR=/opt/homebrew/opt/hdf5
export BLOSC_DIR=/opt/homebrew/opt/c-blosc
I got the solution from here: https://stackoverflow.com/questions/73029883/could-not-find-hdf5-installation-for-pytables-on-m1-mac
Seems to be an error specific to hdf5, homebrew, and M1 Macs. I noticed that I did not have hdf5 already installed on my Mac.
Should this be added to the README.md for any future M1 users of Radis?
Latest version on GitHub
MacOS
How to accelerate the compute time when I use radis for multi spectrum calculating with different TvibγTrotγmole fraction and pressure? The time of Calculated nonequilibrium populations and Checked nonequilibrium parameters cost much time when running, How can I reduce its time.
I want to use radis for multiprocessing computeing for different spectrum, but the time consuming is unacceptable.
I was wondering why does radis
sets an upper bound version constraint on Numpy in its setup file?
When adding radis
to a Python environment where a version of Numpy larger than 1.22.3
is required (either from the current project, or from other dependencies), the package manager is going to run into a resolution error as radis
requires numpy<=1.22.3
.
Usually, it is not recommended to have upper bound version constraint for dependencies, but I don't know there are specific reasons here to avoid Numpy versions larger than 1.22.3
?
Unless radis
is incompatible with numpy>1.22.3
, we could simply update the constraint set by this line in the setup.py file (similarly in the development conda environment file) to:
python
"numpy>=1.22.3"
(perhaps a typo changed >
into <
?)
If I change numpy>=1.22.3
to numpy
, in environment.yml
and let conda determine what version of Numpy to install, it picks 1.23.5
(latest version at the time of writing is 1.24.2
). If I run the tests with this change, I have all tests passing.
Tip : you can vote for New Features on https://feathub.com/radis/radis Also check for the Long Term Todo List
Docs are broken : https://readthedocs.org/projects/radis/builds/19302835/
Apparently due to missing test file : FileNotFoundError: Test file
trimmed_1857_VoigtCO_Minesi.matdoes not exist
```
Extension error: Here is a summary of the problems encountered when running the examples
Unexpected failing examples:
/home/docs/checkouts/readthedocs.org/user_builds/radis/checkouts/develop/examples/plot_compare_CO_geisa_hitran.py failed leaving traceback:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/radis/checkouts/develop/examples/plot_compare_CO_geisa_hitran.py", line 37, in
/home/docs/checkouts/readthedocs.org/user_builds/radis/checkouts/develop/examples/plot_newfitting_Tgas-molfrac.py failed leaving traceback:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/radis/checkouts/develop/examples/plot_newfitting_Tgas-molfrac.py", line 35, in trimmed_1857_VoigtCO_Minesi.mat
does not exist. Choose one of:
- hitran_CO_fragment.par
- geisa_CO2_fragment.par
- co2_cdsd_hamiltonian_fragment.levels
- CO_Tgas1500K_mole_fraction0.01.spec
- geisa_CO_fragment.par
- hitran_co2_626_bandhead_4165_4200nm.par
- hitran_co_3iso_2000_2300cm.h5
- cdsd_hitemp_09_fragment.txt
- geisa_O2_fragment.par
- calc_N2C_spectrum_Trot1200_Tvib3000_slit0.1.txt
- synth-NH3-1-500-2000cm-P10-mf0.01-p1.spec
- hitran_co2_626_bandhead_4165_4200nm.h5
- CO_Tgas1500K_mole_fraction0.5.spec
- Corentin_0_100cm_DownSampled_20cm_10pctCO2_1-wc-gw450-gr300-sl1500-acc5000-.spec
- hitran_2016_H2O_2iso_2000_2100cm.par
- hitran_co_3iso_2000_2300cm.par
- hitran_CO2_fragment.par
- geisa_H2O_fragment.par
- N2C_specair_380nm.spec
- CO2abscoeff_300K_4150_4400nm.txt
- slitfunction.txt
- cdsd_hitemp_09_fragment.h5
- CO2_measured_spectrum_4-5um.spec
- cdsd_hitemp_09_header.txt
- SpecDatabase_Test
- calc_N2C_spectrum_Trot1200_Tvib3000.txt or use force=True
```
@TranHuuNhatHuy you added this test file (it does appear in https://github.com/radis/radis/tree/develop/radis/test/files ) . However to appear in the Docs it should also be included in the MANIFEST.in file.
Easy fix
latest
Windows
There is also another error :
```
Unexpected failing examples:
/home/docs/checkouts/readthedocs.org/user_builds/radis/checkouts/develop/examples/plot_compare_CO_geisa_hitran.py failed leaving traceback:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/radis/checkouts/develop/examples/plot_compare_CO_geisa_hitran.py", line 37, in
The major release 0.14
after 0.13
, brings essential fixes to the interface, and the final implementations of the Google Summer of Code 2022 new features with gallery examples.
Main changes : - non air mixtures automatically taken into account when using Hitran #495 - fitting modules examples #520 - Radis now uses a common API with Exojax to fetch databases
Features: * Implement all new fitting modules and accompanied gallery examples into RADIS by @TranHuuNhatHuy in https://github.com/radis/radis/pull/520 * add explicit warning/error message if line with 0-cm-1 broadening by @erwanp in https://github.com/radis/radis/pull/524 * Allow astropy units to be used in crop() by @TranHuuNhatHuy in https://github.com/radis/radis/pull/526 * Removing completed TODO in radis/lbl/calc.py by @mdrodelo in https://github.com/radis/radis/pull/527 * Add/common api by @erwanp in https://github.com/radis/radis/pull/480 * Non air diluent 2 by @Supriya1702 in https://github.com/radis/radis/pull/495 * number of trans files in H3O_p/Exomol error manually fixed by @HajimeKawahara in https://github.com/radis/radis/pull/531
Docs:
* Additional illustrative gallery examples for new fitting module by @TranHuuNhatHuy in https://github.com/radis/radis/pull/522
* Add some small docs/examples by @TranHuuNhatHuy in https://github.com/radis/radis/pull/518
Full Changelog: https://github.com/radis/radis/compare/0.13.1...0.14
Intermediary version between 0.13 and 0.14, brings important fixes to the experimental GPU mode, many other interface fixes, as well as the first implementations of the Google Summer of Code 2022 new features.
Pull Request : https://github.com/radis/radis/pull/517
Features: * Fetch hitran update by @Supriya1702 in https://github.com/radis/radis/pull/505 : you can now fetch non-air broadening parameters, as well as any other parameter available in the HITRAN database. ```python from radis.io.hitran import fetch_hitran
df = fetch_hitran("CO",["n_CO2","gamma_CO2"])
print(df)
print(df.columns)
```
Performance: * Chunk size implementation for DIT Algorithm loops for Broadening by @sagarchotalia in https://github.com/radis/radis/pull/489 : allows to compute extreme amount of lines on limited RAM systems. * update chunksize test to make it faster - and RT minor perf improvement by @erwanp in https://github.com/radis/radis/pull/503
Interface: * Added warning and help improvement for get_population, update line survey, add example by @minouHub in https://github.com/radis/radis/pull/512
Fixes: * Updated numpy<=1.22.3 and fixed linting by @anandxkumar in https://github.com/radis/radis/pull/490 * fix specutils i/o when dealing with wavelngths by @erwanp in https://github.com/radis/radis/pull/499 * Fix gpu by @dcmvdbekerom in https://github.com/radis/radis/pull/514 : GPU sliders now work in Radiance mode * Fix HDF5/ api issues by @erwanp in https://github.com/radis/radis/pull/487 * Fixing the case when the chunksize is too small by @sagarchotalia in https://github.com/radis/radis/pull/500
Docs:
* update physics constants to NIST CODATA standards, update docs by @erwanp in https://github.com/radis/radis/pull/498
* Added the Radis Website Link by @sonikarajesh in https://github.com/radis/radis/pull/475
* Whitespaces fix by @Supriya1702 in https://github.com/radis/radis/pull/481
* Remove RTD special vaex handling by @erwanp in https://github.com/radis/radis/pull/502
* β¨ we now have a Youtube Video Channel
Refactor:
* DBManager Refactor and simplification of ExoMol MdBMol by @erwanp in https://github.com/radis/radis/pull/465 : first step before Common-API with Exojax.
* Refactor extra molecular parameters by @erwanp in https://github.com/radis/radis/pull/516 . Simplification of the radis.config
file.
Full Changelog: https://github.com/radis/radis/compare/0.13.0...0.13.1
Pull request details : https://github.com/radis/radis/pull/472
python
s = calc_spectrum(1000 / u.cm, 10000 / u.cm,
molecule="CH4",
mole_fraction=1900e-9,
isotope='1,2,3',
wstep='auto',
pressure=1.01325 * u.bar,
Tgas=296 * u.K,
path_length=100 * u.cm,
databank='geisa', # GEISA-2020
verbose=False,
export_lines=True,
)
import matplotlib.pyplot as plt
plt.figure(figsize=(12,6))
s.plot("xsection", yscale='log', nfig='same')
s.line_survey()
GEISA database can be accessed as a Pandas DataFrame using fetch_geisa() :
python
from radis.io.geisa import fetch_geisa
df = fetch_geisa("H2O")
print(df)
```
wav int airbrd ... ierrT Tdpnself ierrU
0 0.052583 2.154000e-33 0.0923 ... 0.0 -0.99 -0.99
1 0.181997 2.486000e-35 0.0399 ... 0.0 -0.99 -0.99
2 0.184013 8.470000e-36 0.0399 ... 0.0 -0.99 -0.99
3 0.187637 5.255000e-29 0.0900 ... 0.0 -0.99 -0.99
4 0.363402 2.041100e-33 0.0800 ... 0.0 -0.99 -0.99
... ... ... ... ... ... ...
362217 25332.871900 8.100000e-28 0.1056 ... 0.0 -0.99 -0.99
362218 25333.215510 1.560000e-28 0.1078 ... 0.0 -0.99 -0.99
362219 25334.143900 4.750000e-28 0.0905 ... 0.0 -0.99 -0.99
362220 25335.071700 8.260000e-28 0.1102 ... 0.0 -0.99 -0.99
362221 25336.948790 7.170000e-29 0.1125 ... 0.0 -0.99 -0.99
[362222 rows x 31 columns] ```
cm-1
will yield a default radiance in ~mW/cm2/sr/cm-1
while plotting in nm
will yield a default radiance in ~mW/cm2/sr/nm
@AllanHOlesenBW (major refactor under the hood)```python from radis import calc_spectrum import astropy.units as u
s4 = calc_spectrum(1950 / u.cm, 1980 / u.cm, mole_fraction={'CH4':1900e-9, 'CO2':400e-6}, isotope='1,2,3', pressure=1.01325 * u.bar, Tgas=296 * u.K, path_length=100 * u.cm, databank='geisa', verbose=False, export_lines=True)
s4.line_survey(overlay='abscoeff', barwidth=0.001)
```
Full Changelog: https://github.com/radis/radis/compare/0.12.1...0.13.0
Fix of 0.12.0
Main physics change: - the default lineshape optimization routine is changed ; the new one being more robust. It will improve accuracy for extremelly thin lineshapes. ( https://github.com/radis/radis/issues/421 and https://github.com/radis/radis/pull/422)
Features :
Fixes :
Full Changelog: https://github.com/radis/radis/compare/0.11.1...0.12.1
Christmas release π , adding GPU support as well as many new small features and improvements, and an important bug fix for HITRAN users.
See PR #415
Changes since 0.11.1 (November 2021) :
nothing new
https://user-images.githubusercontent.com/16088743/121789972-f34ab280-cbda-11eb-99b0-d7ba019d80d5.mp4
```
s = radis.test_spectrum() s.plot("xsection")
COspectrum2502421670720 new quantities added: ['xsection']
```
```
s.take("abscoeff"/"emisscoeff"/"xsection"/"transmittance_noslit"/ etc.) s.plot("abscoeff"/"emisscoeff"/"xsection"/"transmittance_noslit"/ etc.) s.get("abscoeff"/"emisscoeff"/"xsection"/"transmittance_noslit"/ etc.) ```
nothing new
nothing new
Full Changelog: https://github.com/radis/radis/compare/0.11.1...0.12.0
Hotfix of 0.11.0
Full Changelog: https://github.com/radis/radis/compare/0.11.0...0.11.1
spectroscopy spectra infrared hitran hitemp plasma plasma-physics combustion radiation astrophysics exoplanets closember