.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/get_molecular_parameters.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_get_molecular_parameters.py: ======================== Get Molecular Parameters ======================== Retrieve isotopologue abundances or molecular mass, based on HITRAN data, using :py:class:`~radis.db.molparam.MolParams` See also how to use custom (non-terrestrial) abundances in :ref:`the Custom Abundances example ` .. GENERATED FROM PYTHON SOURCE LINES 16-35 .. code-block:: default from radis.db.molparam import MolParams molpar = MolParams() print("CO2 abundances for the first 2 isotopes :") print(molpar.get("CO2", 1, "abundance")) # 1 for isotopologue number print(molpar.get("CO2", 2, "abundance")) # 1 for isotopologue number print("H2O molar mass for the first 2 isotopes") print(molpar.get("H2O", 1, "mol_mass")) # 1 for isotopologue number print(molpar.get("CO2", 2, "mol_mass")) # 1 for isotopologue number print("Tabulated CO partition function at 296 K for the first 2 isotopes") print(molpar.get("CO", 1, "Q_296K")) # 1 for isotopologue number print(molpar.get("CO", 2, "Q_296K")) # 1 for isotopologue number .. GENERATED FROM PYTHON SOURCE LINES 36-38 .. code-block:: default print("All parameters: ", list(molpar.df.columns)) print(molpar.df) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_get_molecular_parameters.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: get_molecular_parameters.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: get_molecular_parameters.ipynb `