:orphan: Example gallery =============== These examples show simple calculations and tasks that can be performed with the RADIS package. Run them locally or in 🔬 `Radis-Lab `__. .. raw:: html
.. raw:: html
Database handling --------------- Download databases and plot spectroscopic constants with RADIS. .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_calculate_partition_functions_from_constants_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_calculate_partition_functions_from_constants.py` .. raw:: html
Partition Functions from spectroscopic constants
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_calculate_partition_functions_from_tips_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_calculate_partition_functions_from_tips.py` .. raw:: html
Partition Functions from TIPS
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_calculate_rovibrational_energies_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_calculate_rovibrational_energies.py` .. raw:: html
Calculate Rovibrational Energies
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_get_molecular_parameters_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_get_molecular_parameters.py` .. raw:: html
Get Molecular Parameters
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_plot_custom_abundances_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_plot_custom_abundances.py` .. raw:: html
Use Custom Abundances
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_plot_explore_database_vaex_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_plot_explore_database_vaex.py` .. raw:: html
Explore Line Database Parameters
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_plot_hitemp_OH_database_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_plot_hitemp_OH_database.py` .. raw:: html
Download the HITEMP database
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_plot_line_survey_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_plot_line_survey.py` .. raw:: html
Line Survey
.. raw:: html
.. only:: html .. image:: /auto_examples/0_Database_handling/images/thumb/sphx_glr_plot_linestrengths_thumb.png :alt: :ref:`sphx_glr_auto_examples_0_Database_handling_plot_linestrengths.py` .. raw:: html
Scale Linestrengths of carbon-monoxide
.. raw:: html
Calculate and handle spectra --------------- Computation of spectra, with redondancy of some modules in the examples. Benchmark of the RADIS code can also be found in ``\radis\test\benchmark``. .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_blackbody_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_blackbody.py` .. raw:: html
Blackbody radiation
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_compare_CO_exomol_hitemp_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_compare_CO_exomol_hitemp.py` .. raw:: html
Compare CO cross-sections from HITRAN, HITEMP, GEISA, and ExoMol
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_compare_CO_geisa_hitran_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_compare_CO_geisa_hitran.py` .. raw:: html
Compare CO spectrum from the GEISA and HITRAN database
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_exomol_spectrum_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_exomol_spectrum.py` .. raw:: html
Calculate a spectrum from ExoMol
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_full_range_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_full_range.py` .. raw:: html
Calculate a full range spectrum
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_merged_large_spectrum_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_merged_large_spectrum.py` .. raw:: html
Calculate a large spectrum by part
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_nonequilibrium_co_spectrum_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_nonequilibrium_co_spectrum.py` .. raw:: html
Calculate non-LTE spectra of carbon-monoxide
.. raw:: html
.. only:: html .. image:: /auto_examples/1_Spectra_handling/images/thumb/sphx_glr_plot_populations_thumb.png :alt: :ref:`sphx_glr_auto_examples_1_Spectra_handling_plot_populations.py` .. raw:: html
See populations of computed levels
.. raw:: html
Fitting experimental spectra (basics) --------------- Usefull functions to upload experimental data and fit them with simple models. .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/2_Experimental_spectra/images/thumb/sphx_glr_plot_chain_spectrum_edition_thumb.png :alt: :ref:`sphx_glr_auto_examples_2_Experimental_spectra_plot_chain_spectrum_edition.py` .. raw:: html
Chain Editing and Lineshape Fitting a Spectrum
.. raw:: html
.. only:: html .. image:: /auto_examples/2_Experimental_spectra/images/thumb/sphx_glr_plot_experimental_spectrum_thumb.png :alt: :ref:`sphx_glr_auto_examples_2_Experimental_spectra_plot_experimental_spectrum.py` .. raw:: html
Load an experimental spectrum
.. raw:: html
.. only:: html .. image:: /auto_examples/2_Experimental_spectra/images/thumb/sphx_glr_plot_fit_lineshape_thumb.png :alt: :ref:`sphx_glr_auto_examples_2_Experimental_spectra_plot_fit_lineshape.py` .. raw:: html
Fit Multiple Voigt Lineshapes
.. raw:: html
.. only:: html .. image:: /auto_examples/2_Experimental_spectra/images/thumb/sphx_glr_plot_remove_baseline_thumb.png :alt: :ref:`sphx_glr_auto_examples_2_Experimental_spectra_plot_remove_baseline.py` .. raw:: html
Remove a baseline
.. raw:: html
.. only:: html .. image:: /auto_examples/2_Experimental_spectra/images/thumb/sphx_glr_plot_specutils_processing_thumb.png :alt: :ref:`sphx_glr_auto_examples_2_Experimental_spectra_plot_specutils_processing.py` .. raw:: html
Post-process using Specutils
.. raw:: html
Fitting experimental spectra (advanced) --------------- A wrapper is implemented in RADIS to fit experimental spectra with simulated spectra. We recommend starting with examples #1, #2, and #3. A legacy method is also available. .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/3_Fitting/images/thumb/sphx_glr_plot1_fit_Tgas_thumb.png :alt: :ref:`sphx_glr_auto_examples_3_Fitting_plot1_fit_Tgas.py` .. raw:: html
Example #1: Temperature fit
.. raw:: html
.. only:: html .. image:: /auto_examples/3_Fitting/images/thumb/sphx_glr_plot2_fit_Tgas-molfrac_thumb.png :alt: :ref:`sphx_glr_auto_examples_3_Fitting_plot2_fit_Tgas-molfrac.py` .. raw:: html
Example #2: multiparameters (T, x_CO, offset)
.. raw:: html
.. only:: html .. image:: /auto_examples/3_Fitting/images/thumb/sphx_glr_plot3_fit_Trot-Tvib-molfrac_thumb.png :alt: :ref:`sphx_glr_auto_examples_3_Fitting_plot3_fit_Trot-Tvib-molfrac.py` .. raw:: html
Example #3: non-equilibrium spectrum (Tvib, Trot, x_CO)
.. raw:: html
.. only:: html .. image:: /auto_examples/3_Fitting/images/thumb/sphx_glr_plot4_legacyFit_Tgas_thumb.png :alt: :ref:`sphx_glr_auto_examples_3_Fitting_plot4_legacyFit_Tgas.py` .. raw:: html
Legacy #1: Temperature fit of CO2 spectrum
.. raw:: html
.. only:: html .. image:: /auto_examples/3_Fitting/images/thumb/sphx_glr_plot5_legacyFit_Trot-Tvib_thumb.png :alt: :ref:`sphx_glr_auto_examples_3_Fitting_plot5_legacyFit_Trot-Tvib.py` .. raw:: html
Legacy #2: non-equilibrium CO2 (Tvib_12, Tvib_3, Trot)
.. raw:: html
.. only:: html .. image:: /auto_examples/3_Fitting/images/thumb/sphx_glr_plot6_fit_vs_legacyFit_thumb.png :alt: :ref:`sphx_glr_auto_examples_3_Fitting_plot6_fit_vs_legacyFit.py` .. raw:: html
Legacy vs recommended fitting examples
.. raw:: html
GPU calculations --------------- Unleash the power of your GPU to speed up your calculations. .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/4_GPU/images/thumb/sphx_glr_plot_gpu_thumb.png :alt: :ref:`sphx_glr_auto_examples_4_GPU_plot_gpu.py` .. raw:: html
GPU Accelerated Spectra
.. raw:: html
.. only:: html .. image:: /auto_examples/4_GPU/images/thumb/sphx_glr_plot_gpu_recalc_thumb.png :alt: :ref:`sphx_glr_auto_examples_4_GPU_plot_gpu_recalc.py` .. raw:: html
GPU Accelerated Spectra (recalc_gpu() demo)
.. raw:: html
.. only:: html .. image:: /auto_examples/4_GPU/images/thumb/sphx_glr_plot_gpu_widgets_thumb.png :alt: :ref:`sphx_glr_auto_examples_4_GPU_plot_gpu_widgets.py` .. raw:: html
Real-time GPU Accelerated Spectra (Interactive)
.. raw:: html
MatLab interface --------------- RADIS can be accessed from Matlab by setting up Python environment in Matlab :: s = py.radis.calc_spectrum(1900,2300,molecule='CO',isotope='1,2,3',pressure=1.01325,Tgas=700,mole_fraction=0.1,path_length=1,databank='hitran'); s.apply_slit(0.5,'nm'); s.plot(show=true); .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/5_MatLab/images/thumb/sphx_glr_plot_calc_matlab.m_thumb.png :alt: :ref:`sphx_glr_auto_examples_5_MatLab_plot_calc_matlab.m.py` .. raw:: html
Example of using RADIS from Matlab
.. raw:: html
Miscellaneous --------------- Various other things that don't fit into the other categories. .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/6_Misc/images/thumb/sphx_glr_cite_all_works_thumb.png :alt: :ref:`sphx_glr_auto_examples_6_Misc_cite_all_works.py` .. raw:: html
Cite all references used
.. raw:: html
.. only:: html .. image:: /auto_examples/6_Misc/images/thumb/sphx_glr_plot_SpecDatabase_thumb.png :alt: :ref:`sphx_glr_auto_examples_6_Misc_plot_SpecDatabase.py` .. raw:: html
Spectrum Database
.. raw:: html
.. only:: html .. image:: /auto_examples/6_Misc/images/thumb/sphx_glr_plot_slit_function_thumb.png :alt: :ref:`sphx_glr_auto_examples_6_Misc_plot_slit_function.py` .. raw:: html
Slit Function
.. raw:: html
.. only:: html .. image:: /auto_examples/6_Misc/images/thumb/sphx_glr_plot_styles_thumb.png :alt: :ref:`sphx_glr_auto_examples_6_Misc_plot_styles.py` .. raw:: html
Use different plot themes
.. raw:: html
.. rubric:: Footnotes Radis-Lab allows you to share your session URL with colleagues. They will access the latest saved version of your notebook as long as your session is running. .. raw:: html
.. raw:: html
.. toctree:: :hidden: :includehidden: /auto_examples/0_Database_handling/index.rst /auto_examples/1_Spectra_handling/index.rst /auto_examples/2_Experimental_spectra/index.rst /auto_examples/3_Fitting/index.rst /auto_examples/4_GPU/index.rst /auto_examples/5_MatLab/index.rst /auto_examples/6_Misc/index.rst /auto_examples/9_footer/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: auto_examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip `