.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_hitemp_OH_database.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_hitemp_OH_database.py: .. _example_download_hitemp: ============================ Download the HITEMP database ============================ Database will be downloaded automatically and can be edited locally. To compute a spectrum with the HITEMP database, see the :ref:`Calculate a HITEMP spectrum example ` By default the database is returned as a Pandas DataFrame. To explore huge databases (like CO2, CH4 or H2O) that do not fit in RAM, RADIS allows you to use a Vaex DataFrame instead (out-of-RAM). See the :ref:`Explore Database with Vaex example ` .. GENERATED FROM PYTHON SOURCE LINES 19-26 .. code-block:: default from radis.io.hitemp import fetch_hitemp df = fetch_hitemp("OH") print(df.columns) .. rst-class:: sphx-glr-script-out .. code-block:: none Downloading 13_HITEMP2020.par.bz2 for OH (1/1). Download complete. Parsing OH database to /home/docs/.radisdb/hitemp/OH-13_HITEMP2020.hdf5 :219: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 80 from C header, got 96 from PyObject Added HITEMP-OH database in /home/docs/radis.json Index(['id', 'iso', 'wav', 'int', 'A', 'airbrd', 'selbrd', 'El', 'Tdpair', 'Pshft', 'globu', 'globl', 'locu', 'locl', 'ierr', 'iref', 'lmix', 'gp', 'gpp'], dtype='object') .. GENERATED FROM PYTHON SOURCE LINES 27-39 Returns: :: Index(['id', 'iso', 'wav', 'int', 'A', 'airbrd', 'selbrd', 'El', 'Tdpair', 'Pshft', 'globu', 'globl', 'locu', 'locl', 'ierr', 'iref', 'lmix', 'gp', 'gpp'], dtype='object') Columns are described in :py:attr:`~radis.io.hitran.columns_2004` A specific can be retrieved with the same :py:func:`~radis.io.hitemp.fetch_hitemp` function. The already downloaded database will be used: .. GENERATED FROM PYTHON SOURCE LINES 39-42 .. code-block:: default df = fetch_hitemp("OH", load_wavenum_min=31500, load_wavenum_max=33000, isotope="1") df.plot("wav", "int") .. image-sg:: /auto_examples/images/sphx_glr_plot_hitemp_OH_database_001.png :alt: plot hitemp OH database :srcset: /auto_examples/images/sphx_glr_plot_hitemp_OH_database_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 2.983 seconds) .. _sphx_glr_download_auto_examples_plot_hitemp_OH_database.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_hitemp_OH_database.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_hitemp_OH_database.ipynb `