First Example

Run the Quick Start example from the RADIS documentation


Run the different Cells with the Run command above (or Cell/Runs All). First, let's calculate a CO spectrum under thermal equilibrium at 1000 K.

In [ ]:
%matplotlib inline
from radis import calc_spectrum
s = calc_spectrum(1900, 2300,         # cm-1
                  molecule='CO',
                  isotope='1,2,3',
                  pressure=1.01325,   # bar
                  Tgas=1000,          # K
                  mole_fraction=0.1,
                  path_length=1,      # cm
                  )
s.apply_slit(0.5, 'nm')
s.plot('radiance')

See the RADIS Documentation: Spectrum how to? for more post-processing methods

Below, we calculate a Nonequilibrium spectrum. Rovibrational energies will be calculated automatically from RADIS built-in spectroscopic constants

In [ ]:
s2 = calc_spectrum(1900, 2300,         # cm-1
                  molecule='CO',
                  isotope='1,2,3',
                  pressure=1.01325,   # bar
                  Tvib=1000,          # K
                  Trot=300,           # K
                  mole_fraction=0.1,
                  path_length=1,      # cm
                  )
s2.apply_slit(0.5, 'nm')
s2.plot('radiance')

Now calculate your own spectra:

In [ ]: