https://github.com/atmtools/arts-crossfit
ARTS HITRAN crosssection absorption model
https://github.com/atmtools/arts-crossfit
Last synced: 10 months ago
JSON representation
ARTS HITRAN crosssection absorption model
- Host: GitHub
- URL: https://github.com/atmtools/arts-crossfit
- Owner: atmtools
- License: mit
- Created: 2021-06-14T10:23:17.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T06:16:32.000Z (about 4 years ago)
- Last Synced: 2024-03-26T20:20:22.997Z (over 2 years ago)
- Language: Python
- Size: 94.7 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arts-crossfit
ARTS HITRAN cross section absorption model
## Calculate cross sections with the model
1. Download the precalculated coefficients files from the `arts-xml-data` package and put them in the `coefficients/` directory.
To generate the coefficients yourself, see section ["Generate model coefficients"](#generate-model-coefficients) below.
2. Run the example script.
```
scripts/Xsec_Calculate.py
```
Creates a plot of CFC-11 crossections in `plots/Xsecs/`.
## Generate model coefficients
1. Download Hitran cross section data and molecule headers into designated folders
```
cd data/HitranXsec/
curl -O https://hitran.org/data/xsec/xss.tar.gz
tar -zxf xss.tar.gz
cd ../HitranMoleculeHeaders/
wget --no-parent -nd -r -A '*.json' https://hitran.org/suppl/xsec/molecule_headers/
cd -
```
2. Convert cross section data to json format
```
scripts/Xsec_ConvertHitranToJson.py
```
3. Generate harmonized data
```
scripts/Xsec_DefineBandsAndHarmonizeData.py
```
Choose option 0 to use the predefined band configuration.
4. Generate model coefficients
```
scripts/Xsec_CalculateFitCoefficients.py -f
```
The `-f` option generates optional diagnostic figures in `plots/SPECIES/`.
Use `-p X` to speed up the calculation by using X cores in parallel.
The XML data files are stored in `coefficients/`.