From 439a30e164955c15e1ce88713bb8563adca58c40 Mon Sep 17 00:00:00 2001 From: Oliver Lemke Date: Thu, 12 May 2022 09:29:52 +0200 Subject: [PATCH 1/2] Replace pyarts.classes with pyarts.arts --- scripts/Xsec_CalculateFitCoefficients.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/Xsec_CalculateFitCoefficients.py b/scripts/Xsec_CalculateFitCoefficients.py index 0c93070..ca6e3eb 100755 --- a/scripts/Xsec_CalculateFitCoefficients.py +++ b/scripts/Xsec_CalculateFitCoefficients.py @@ -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 = {} @@ -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', From 2fa533f6ee40320eba519deea511d5dc21f69d6f Mon Sep 17 00:00:00 2001 From: Oliver Lemke Date: Tue, 7 Jun 2022 08:16:11 +0200 Subject: [PATCH 2/2] Update link to arts-cat-data --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c907c27..da35bf6 100644 --- a/README.md +++ b/README.md @@ -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.