https://github.com/danielhuppmann/climate-risks-academy-2021
Advanced assignment for the EUI-FBF-OW Climate Risks Academy 2021
https://github.com/danielhuppmann/climate-risks-academy-2021
Last synced: 6 months ago
JSON representation
Advanced assignment for the EUI-FBF-OW Climate Risks Academy 2021
- Host: GitHub
- URL: https://github.com/danielhuppmann/climate-risks-academy-2021
- Owner: danielhuppmann
- License: apache-2.0
- Created: 2021-06-15T04:39:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-16T04:10:26.000Z (almost 4 years ago)
- Last Synced: 2024-06-11T17:02:19.489Z (12 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 44.9 KB
- Stars: 7
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Climate Risks Academy 2021 - Modelling Lab
Copyright 2021 Daniel Huppmann
This repository is licensed under the Apache License, Version 2.0 (the "License");
see the [LICENSE](LICENSE) for details.[](https://github.com/danielhuppmann/climate-risks-academy-2021/blob/main/LICENSE)
## Overview
This repository contains solutions for the advanced assignment of the Modelling Lab of
the **Climate Risks Academy 2021** organized by the European University Institute (EUI)
Florence School of Banking and Finance in cooperation with Oliver Wyman.
See [here](https://fbf.eui.eu/climate-risks-academy/) for more information.## The NGFS Scenario Ensemble (Phase 2)
The exercise uses the scenario ensemble compiled by a cooperation between several
integrated-assessment modelling teams and the
*Network for Greening the Financial System* (NGFS), in particular Phase 2 (June 2021)
of the scenario data.
See [this presentation](https://www.ngfs.net/sites/default/files/medias/documents/ngfs_climate_scenarios_phase2_june2021.pdf)
about the release of Phase 2.The scenario data is available via the [NGFS Scenario Explorer hosted by IIASA](https://data.ece.iiasa.ac.at/ngfs)
## Assignment
### Learning objective
A user should learn how to retrieve scenario data from an IIASA Scenario Explorer instance into a Python computing environment
and use pyam to create plots for data analysis (including computing indicators derived from timeseries data).### Prerequisites
A user should be familiar with the following items before starting this assignment:
- Basic Python syntax: variables, functions, lists, dictionaries, ...
- If you’ve never used Python before, [Anaconda](https://anaconda.org)
is an easy option to install the basics
- See this [Getting started guide](https://www.python.org/about/gettingstarted/)
- More resources to learn Python and its syntax
- [realpython.com](https://realpython.com/python-first-steps/)
- [fbkarsdorp's python course](https://github.com/fbkarsdorp/python-course)
- [edx.org](https://www.edx.org/course/programming-for-everybody-getting-started-with-pyt)
- Jupyer notebooks, see [jupyter.org](https://jupyter.org/)
- The [first steps tutorial](https://pyam-iamc.readthedocs.io/en/stable/tutorials/pyam_first_steps.html)
of the pyam package### Tasks
0. Retrieve the data from the [NGFS Scenario Explorer hosted by IIASA](https://data.ece.iiasa.ac.at/ngfs),
- By downloading the Excel file from the Downloads section of the web user interface
saving the file on your machine, and then importing it into a Jupyter notebook, or
- Retrieving the data directly from Python via the **pyam.iiasa.Connection** class.
(see this [tutorial](https://pyam-iamc.readthedocs.io/en/stable/tutorials/iiasa_dbs.html),
connect to the `ngfs` database)
0. Implement a grouping (meta indicator) of Paris-compatible pathways (vs. exceeding 2°C)
0. Select several scenarios and compare the energy mix as suitable plots
0. Create several plots showing the development of different energy sources by region
0. Compute relative indicators of the trajectories of energy sources between different scenarios### Example solution
This repository shows one way to implement the tasks.
Following good practice of scientific programming, the tasks are separated into
disctint notebooks, available in the [notebooks](notebooks) folder.## The pyam package
This exercise uses the Python package **pyam**, an open-source community toolbox for
analysis & visualization of scenario data.
The package was developed to facilitate working with timeseries scenario data
conforming to the format developed by the
[Integrated Assessment Modeling Consortium (IAMC)](https://www.iamconsortium.org).
The package is used in ongoing assessments by the IPCC and in many model comparison
projects at the global and national level, including several Horizon 2020 projects.[Read the docs](https://pyam-iamc.readthedocs.io) for more information!
## Getting started
To run the notebooks on your machine, please install Python version 3.7 or higher.
To install the required packages and dependencies, download or git-clone this repository
and run the following command in the root folder:```
pip install -r requirements.txt
```