ciceroOslo / climate-assessment

Fork of IIASA's climate-assessment repository. Docs at https://climate-assessment.readthedocs.io/en/latest

Home Page:https://climate-assessment.readthedocs.io/en/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

climate-assessment - Assessing the climate outcomes of future emissions scenarios


Please note that ``climate-assessment`` is still in early developmental stages, thus all interfaces are subject to change.

The package climate-assessment provides the possibility to reproduce the climate variable data for the working group III (WGIII or WG3) contribution to the IPCC Sixth Assessment (AR6) report, using climate emulators that were used in the working group I (WGI or WG1) contribution to AR6. It also allows for assessing new emissions pathways in a way that is fully consistent with AR6.

Installation

Using pip

pip is Python's default package management system.

Attention!

Due to the better dependency resolution installing with pip>=22 is recommended.

If you install Anaconda, then pip is also usable. pip can also be used when Python is installed directly, without using Anaconda.

  1. Ensure pip is installed—with Anaconda, or according to the pip documentation.

  2. Open a command prompt and run:

    $ pip install climate-assessment
    

From source

(Optional) If you intend to contribute changes to climate-assessment, installing directly from source is the way to go.

Detailed instructions on how to do this can be found in the documentation under https://climate-assessment.readthedocs.io/en/latest/install.html.

Documentation

All documentation, including installation instructions, can be found at https://climate-assessment.readthedocs.io/.

License

Licensed under an MIT License. See the LICENSE file for more information.

Development

Raising an issue

If you have a suggestion for development, or find a bug, please report this under: https://github.com/iiasa/climate-assessment/issues.

Running the tests

The tests can be run with pytest. On a Linux system, you should run something like MAGICC_PROBABILISTIC_FILE=path/to/probabilistic-file pytest tests. Note that for the tests to work properly, you must set up your .env file (see "Environment" section above). On Windows, the environment variables (like MAGICC_PROBABILISTIC_FILE=path/to/probabilistic-file) should be set system-wide, and the command reads pytest tests.

Formatting code

Before committing or merging code, the following lines should be run to ensure that the formatting is consistent with what is expected by the Continuous Integration setup (for users with make installed, make checks will run these for you):

black src scripts tests setup.py
isort src scripts tests setup.py
flake8 src scripts tests setup.py

About

Fork of IIASA's climate-assessment repository. Docs at https://climate-assessment.readthedocs.io/en/latest

https://climate-assessment.readthedocs.io/en/latest

License:MIT License


Languages

Language:Python 87.0%Language:Jupyter Notebook 11.9%Language:Makefile 0.9%Language:Dockerfile 0.1%Language:Shell 0.0%