This library lets you:
- Run a selection of atmosphere radiation models.
- Store, organize and retrieve results of each run in MongoDB.
- Visualize and tabulate results in the most common formats.
- Update parameter tables in parameterized atmosphere radiation model.
Climatools
provides utilities for running several atmosphere radiation, or radiative transfer, models.
This computes the radiation for a single absorber and spectral band, e.g. (h2o, band 2). It outputs results using two methods: line-by-line and k-distribution parameterization.
The run_lblnew-bestfit.ipynb notebook demonstrates how to run lblnew-best
, store the results in MongoDB, execute the analysis notebook.
Things to note:
- This model is primarily used to tune the k-distribution parameterization method model.
- The input parameter
commitnumber
can be any arbitrary string, used to identify the model run, useful when two runs have the same set of input parameter values but different versions of the code. - Suppose its program files (Fortran) are in the directory
path/to/lblnew_bestfit
, then, before running it, you need to setDIR_SRC
inclimatools/climatools/lblnew/setup_bestfit.py
topath/to/lblnew_besfit
. - Setting
option_compute_ktable
toTrue
, the model will compute large k-tables for the k-distribution method, which takes a long time. This is normally reserved for the best-fit parameter values only, where one intends to export the k-tables to theclirad-lw
model.
This computes radiation for a single spectral band with multiple absorbers. e.g. (band 3a, [h2o, o3]). It outputs results using two methods: line-by-line and k-distribution parameterization. The run_lblnew-overlap.ipynb notebook demonstrates how to run it, store the results in MongoDB, execute the analysis notebook.
Things to note:
- This model is primarily used to verify the accuracy of parameterized method relative to the line-by-line method.
This computes radiation for any selection of spectral bands and absorbers. e.g. ([band 1, band 7], [h2o, n2o]). It outputs results using the k-distribution parameterization method. The run_cliradlw.ipynb demonstrates how to run it, store the results in MongoDB and run the analysis notebook.
Here are the most update-to-date results from clirad-lw
for all considered combinations of spectral bands and absorbers. The results of clirad-lw
are compared with the line-by-line results from lblnew-bestfit
.
To update the k-distribution parameterization model clirad-lw
's model parameters, use the functions in climatools.lblnew.export
. Notebooks get_kdist_bestfits_F77.ipynb and get_kdist_ktable_F77.ipynb allow the user to update all the parameters of clirad-lw.