Skip to content

Thomas-Christie/L96HistoryMatching

 
 

Repository files navigation

History Matching for the Lorenz 96 model

MIT license GitHub contributors PRs Welcome DOI

Semi-automatic tuning of coupled climate models with multiple intrinsic timescales: lessons learned from the Lorenz96 model

Binder

This is the source code related to the publication

Redouane Lguensat, Julie Deshayes, Homer Durand, V. Balaji. Semi-automatic tuning of coupled climate models with multiple intrinsic timescales: lessons learned from the Lorenz96 model (2022) Pre-print: https://arxiv.org/abs/2208.06243

image info

Important

You need to install two main libraries:

Please read carefully the instructions.md file

How to use the notebooks

There are four experiments in the paper, each one is the result of two notebooks. One is written in Python and is used for running the L96 model, the other is written in R and is used to perform HM. Any help in making one Python only notebook is more than welcome !

Steps:

  • you need to start from the R notebook
  • define your initial guess parameter space and run LHS
  • save the designpoints then move to the Python notebook
  • read the saved data, and run the L96 on the design points, then save the metrics and go back to the R notebook
  • run History matching then repeat for subsequent waves !

NOTE: I have converted notebooks to .py files to facilitate version control. If you wish to run an experiment, first convert the .py file to a .ipynb file using jupytext --to notebook <notebook>.py. It isn't guaranteed that the corresponding .ipynb file corresponds to the current .py file in the repo. Also ensure that you move the generated .ipynb file either to the PerformHM_R or GenerateData_Python directory due to the nature of relative imports.

About

History Matching for the Lorenz 96 model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 77.2%
  • HTML 21.5%
  • Other 1.3%