.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/0_Database_handling/calculate_rovibrational_energies.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note You can download :ref:`below ` the full example code and run it with 🔬 `Radis-Lab `__, .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_0_Database_handling_calculate_rovibrational_energies.py: ================================ Calculate Rovibrational Energies ================================ RADIS can simply be used to calculate the rovibrational energies of molecules, using the built-in :ref:`spectroscopic constants ` (or your own!). See the :py:func:`~radis.db.molecules.getMolecule` function, and the :py:data:`~radis.db.molecules.Molecules` list containing all :py:class:`~radis.db.classes.ElectronicState` objects. .. GENERATED FROM PYTHON SOURCE LINES 14-26 .. code-block:: Python from radis import getMolecule # Here we get the energy of the v=6, J=3 level of the 2nd isotope of CO: CO = getMolecule("CO", 2, "X") print(CO.Erovib(6, 3)) # Here we get the energy of the asymmetric mode of CO2:: CO2 = getMolecule("CO2", 1, "X") print(CO2.Erovib(0, 0, 0, 1, 0)) .. _sphx_glr_download_auto_examples_0_Database_handling_calculate_rovibrational_energies.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: calculate_rovibrational_energies.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: calculate_rovibrational_energies.py `