.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_experimental_spectrum.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Run this example online : - Click :ref:`here ` to download the full example code - Then start `Radis-Lab `__, upload the Jupyter notebook, and run it from there. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_experimental_spectrum.py: ============================= Load an experimental spectrum ============================= Load an experimental spectrum stored as ``.spec`` (with units and metadata) using :py:func:`~radis.tools.database.load_spec` (we could also have used :py:func:`~radis.tools.database.plot_spec` directly !) See more loading and post-processing functions on the :ref:`Spectrum page `. .. GENERATED FROM PYTHON SOURCE LINES 14-29 .. image-sg:: /auto_examples/images/sphx_glr_plot_experimental_spectrum_001.png :alt: plot experimental spectrum :srcset: /auto_examples/images/sphx_glr_plot_experimental_spectrum_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Spectrum Name: CO2_measured_spectrum_4-5um.spec Spectral Quantities ---------------------------------------- radiance [µW/cm2/sr/nm] (18,400 points) Physical Conditions ---------------------------------------- Computation Parameters ---------------------------------------- filename 12_StepAndGlue_30us_Cathode_30us_avg_spectra_stacked.txt filename_created 04/08/2017 waveunit nm Config parameters ---------------------------------------- ---------------------------------------- 25.161498577151097 uW / (cm2 nm sr) | .. code-block:: default from radis.test.utils import getTestFile from radis.tools.database import load_spec 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()) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.725 seconds) .. _sphx_glr_download_auto_examples_plot_experimental_spectrum.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_experimental_spectrum.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_experimental_spectrum.ipynb `