Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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.
1. Download the precalculated coefficients files from the [`arts-cat-data`](https://www.radiativetransfer.org/tools/#arts-cat-data) package and put them in the `coefficients/` directory.

To generate the coefficients yourself, see section ["Generate model coefficients"](#generate-model-coefficients) below.

Expand Down
8 changes: 4 additions & 4 deletions scripts/Xsec_CalculateFitCoefficients.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def process_xsec_coefficients(species,
# frequency in Hz
freq = wvn * xaf.c0 * 100

# s_data_temp = pyarts.classes.GriddedField2()
# s_data_temp = pyarts.arts.GriddedField2()
# s_data_temp.gridnames = ['frequency grid [Hz]', 'fit coefficients [m]']
# s_data_temp.grids = [pyarts.classes.Vector(freq),
# pyarts.classes.ArrayOfString(['p00', 'p10', 'p01', 'p20'])]
# s_data_temp.grids = [pyarts.arts.Vector(freq),
# pyarts.arts.ArrayOfString(['p00', 'p10', 'p01', 'p20'])]
# s_data_temp.data = fit_coeffs.transpose()
# s_data_temp.name = (species + '-band_' + str(band_no))
s_data_temp = {}
Expand Down Expand Up @@ -997,7 +997,7 @@ def process_xsec_coefficients(species,
coeff_file_name_arts = os.path.join(coeff_folder_arts,
species_arts + fid_arts)

fitdata_pyarts = pyarts.classes.XsecRecord.from_xarray(fitdata)
fitdata_pyarts = pyarts.arts.XsecRecord.from_xarray(fitdata)
pyarts.xml.save(fitdata_pyarts,
coeff_file_name_arts,
precision='.14e',
Expand Down