Skip to content

qAp/climatools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Climatools

This library lets you:

  1. Run a selection of atmosphere radiation models.
  2. Store, organize and retrieve results of each run in MongoDB.
  3. Visualize and tabulate results in the most common formats.
  4. Update parameter tables in parameterized atmosphere radiation model.

Running the atmosphere radiation models

Climatools provides utilities for running several atmosphere radiation, or radiative transfer, models.

lblnew-bestfit

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 set DIR_SRC in climatools/climatools/lblnew/setup_bestfit.py to path/to/lblnew_besfit.
  • Setting option_compute_ktable to True, 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 the clirad-lw model.

lblnew-overlap

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.

clirad-lw

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.

Results summary

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.

Updating clirad-lw model parameters

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published