Load experimental spectrum

Load an experimental spectrum stored as spec (with units and metadata) using load_spec() (we could also have used plot_spec() directly !)

See more loading and post-processing functions on the Spectrum page.

plot experimental spectrum

Out:

Spectrum Name:  CO2_measured_spectrum_4-5um.spec
Spectral Quantities
----------------------------------------
   radiance     (18,400 points)
Populations Stored
----------------------------------------
Physical Conditions
----------------------------------------
Computation Parameters
----------------------------------------
   filename             12_StepAndGlue_30us_Cathode_30us_avg_spectra_stacked.txt
   filename_created     04/08/2017
   waveunit             nm
----------------------------------------

25.161498577151097

from radis import load_spec
from radis.test.utils import getTestFile

my_file = getTestFile("CO2_measured_spectrum_4-5um.spec")  # for the example here

s = load_spec(my_file)
s.plot()

# Print all metadata:
print(s)

# Or retrieve an information :
print(s.crop(4160, 4200, "nm").max())

Total running time of the script: ( 0 minutes 0.864 seconds)

Gallery generated by Sphinx-Gallery