-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'radis:develop' into develop
- Loading branch information
Showing
72 changed files
with
4,086 additions
and
1,687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
========================================================= | ||
Compare CO spectrum from the GEISA and HITRAN database | ||
========================================================= | ||
GEISA Database has been newly implemented in RADIS 0.13 release on May 15, 2022. This is among | ||
the very first attemps to compare the spectra generated from the two databases. | ||
Auto-download and calculate CO spectrum from the GEISA database, and the HITRAN database. | ||
Output should be similar, but not exactly! By default these two databases provide different | ||
broadening coefficients. However, the Einstein coefficients & linestrengths should be | ||
approximately the same, therefore the integrals under the lines should be similar. | ||
You can see it by running the code below. | ||
For your interest, GEISA and HITRAN lines can be downloaded and accessed separately using | ||
:py:func:`~radis.io.geisa.fetch_geisa` and :py:func:`~radis.io.hitran.fetch_hitran` | ||
""" | ||
import astropy.units as u | ||
|
||
from radis import calc_spectrum, plot_diff | ||
|
||
conditions = { | ||
"wmin": 2002 / u.cm, | ||
"wmax": 2300 / u.cm, | ||
"molecule": "CO", | ||
"pressure": 1.01325, # bar | ||
"Tgas": 1000, # K | ||
"mole_fraction": 0.1, | ||
"path_length": 1, # cm | ||
"verbose": True, | ||
} | ||
|
||
s_geisa = calc_spectrum(**conditions, databank="geisa", name="GEISA's CO") | ||
|
||
s_hitran = calc_spectrum( | ||
**conditions, | ||
databank="hitran", | ||
name="HITRAN's CO", | ||
) | ||
|
||
""" | ||
In :py:func:`~radis.io.geisa.fetch_geisa`, you can choose to additionally plot the | ||
absolute difference (method='diff') by default, or the ratio (method='ratio'), or both. | ||
""" | ||
|
||
plot_diff(s_geisa, s_hitran, method=["diff", "ratio"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.12.1 | ||
0.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.