Skip to content

openscm/openscm-twolayermodel

Repository files navigation

OpenSCM Two Layer Model

Repository health CI CD Coverage
Documentation Docs JOSS
PyPI PyPI Install PyPI PyPI Version
Conda conda install conda platforms conda version
Other info Contributors Last Commit License

Brief summary

OpenSCM two layer model contains implementations of the two layer radiative forcing driven models by Held et al., Geoffroy et al. and Bloch-Johnson et al.

OpenSCM Two Layer Model was designed to provide a clean, modularised, extensible interface for one of the most commonly used simple climate models. It was used in Phase 1 of the Reduced Complexity Model Intercomparison Project as a point of comparison for the other participating models.

The FaIR model implements a mathematically equivalent model (under certain assumptions) but does not provide as clear a conversion between the two-layer model and the two-timescale response as is provided here. We hope that this implementation could interface with other simple climate models like FaIR to allow simpler exploration of the combined behaviour of interacting climate components with minimal coupling headaches.

As implemented here, the "OpenSCM Two Layer Model" interface is target at researchers and as an education tool. Users from other fields are of course encouraged to use it if they find it helpful.

License

OpenSCM two layer model is free software under a BSD 3-Clause License, see LICENSE.

Installation

OpenSCM two layer model has only two dependencies:

  • scmdata>=0.9
  • tqdm

OpenSCM two layer model can be installed with pip

pip install openscm-twolayermodel

If you also want to run the example notebooks install additional dependencies using

pip install "openscm-twolayermodel[notebooks]"

Coming soon OpenSCM two layer model can also be installed with conda

conda install -c conda-forge openscm-twolayermodel

We do not ship our tests with the packages. If you wish to run the tests, you must install from source (or download the tests separately and run them on your installation).

Installing from source

To install from source, simply clone the repository and then install it using pip e.g. pip install ".[dev]". Having done this, the tests can be run with pytest tests or using the Makefile (make test will run only the code tests, make checks will run the code tests and all other tests e.g. linting, notebooks, documentation).

For more details, see the development section of the docs.

Documentation

Documentation can be found at our documentation pages (we are thankful to Read the Docs for hosting us).

Getting help

If you have any issues or would like to discuss a feature request, please raise them in the OpenSCM Two Layer Model issue tracker. If your issue is a feature request or a bug, please use the templates available, otherwise, simply open a normal issue.

Contributing

Please see the Development section of the docs.