For any help, refer to RADIS documentation
In particular, see: calc_spectrum, Spectrum, plot_diff
# We use widget
%matplotlib widget
from radis import calc_spectrum, Spectrum, plot_diff
from astropy import units as u
# A first example.
s = calc_spectrum(1900 / u.cm, 2300 / u.cm,
molecule='CO',
isotope='1,2,3',
pressure=1.01325 * u.bar,
Tgas=700 * u.K,
mole_fraction=0.1,
path_length=1 * u.cm,
verbose=False
)
s.apply_slit(1, 'nm')
s.plot('transmittance')
# Update, or add your code below
# ...
# Import an experimental spectrum :
s_exp = Spectrum.from_txt('my_experiment.txt', 'transmittance', unit='', waveunit='nm') # or import with numpy and use Spectrum.from_array()
plot_diff(s_exp, s)