/climada_python

Python (3.8+) version of CLIMADA

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

DOI Build Status Documentation build status Jenkins Coverage

CLIMADA

CLIMADA stands for CLIMate ADAptation and is a probabilistic natural catastrophe impact model, that also calculates averted damage (benefit) thanks to adaptation measures of any kind (from grey to green infrastructure, behavioural, etc.).

CLIMADA is divided into two parts:

  1. the core climada_python contains all the modules necessary for the probabilistic impact, the averted damage, uncertainty and forecast calculations. Data for hazard, exposures and impact functions can be obtained from the API. Litpop is included as demo Exposures module, and Tropical cyclones is included as a demo Hazard module.
  2. the petals climada_petals contains all the modules for generating data (e.g., TC_Surge, WildFire, OpenStreeMap, ...). Most development is done here. The petals builds-upon the core and does not work as a stand-alone.

It is recommend for new users to begin with the core (1).

This is the Python (3.8+) version of CLIMADA - please see https://github.com/davidnbresch/climada for backward compatibility (MATLAB).

Getting started

CLIMADA runs on Windows, macOS and Linux. Download the latest release. Install CLIMADA's dependencies specified in the downloaded file climada_python-x.y.z/requirements/env_climada.yml with conda. See the documentation for more information on installing.

Follow the tutorial climada_python-x.y.z/doc/tutorial/1_main_climada.ipynb in a Jupyter Notebook to see what can be done with CLIMADA and how.

Documentation

Documentation is available on Read the Docs:

Citing CLIMADA

If you use CLIMADA please cite (in general, in particular for academic work) :

Aznar-Siguan, G. and Bresch, D. N., 2019: CLIMADA v1: a global weather and climate risk assessment platform, Geosci. Model Dev., 12, 3085–3097, https://doi.org/10.5194/gmd-12-3085-2019

Bresch, D. N. and Aznar-Siguan, G., 2021: CLIMADA v1.4.1: towards a globally consistent adaptation options appraisal tool, Geosci. Model Dev., 14, 351-363, https://doi.org/10.5194/gmd-14-351-2021

Please see all CLIMADA-related scientific publications in our repository of scientific publications and cite according to your use of select features, be it hazard set(s), exposure(s) ...

In presentations or other graphical material, as well as in reports etc., where applicable, please add the logo as follows:

As key link, please use https://wcr.ethz.ch/research/climada.html, as it will last and provides a bit of an intro, especially for those not familiar with GitHub - plus a nice CLIMADA infographic towards the bottom of the page

Contributing

To contribute follow these steps:

  1. Fork the project on GitHub.
  2. Create a local clone of the develop branch (git clone https://github.com/YOUR-USERNAME/climada_python.git -b develop)
  3. Install the packages in climada_python/requirements/env_climada.yml and climada_python/requirements/env_developer.yml.
  4. Make well commented and clean commits to your repository.
  5. Make unit and integration tests on your code, preferably during development.
  6. Perform a static code analysis of your code with CLIMADA's configuration .pylintrc.
  7. Add your name to the AUTHORS file.
  8. Push the changes to GitHub (git push origin develop).
  9. On GitHub, create a new pull request onto the develop branch of CLIMADA-project/climada_python.

See our contribution guidelines for more information.

Versioning

We use SemVer for versioning. For the versions available, see the releases on this repository.

License

Copyright (C) 2017 ETH Zurich, CLIMADA contributors listed in AUTHORS.

CLIMADA is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3, 29 June 2007 as published by the Free Software Foundation, https://www.gnu.org/licenses/gpl-3.0.html

CLIMADA is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details: https://www.gnu.org/licenses/gpl-3.0.html