Giter Site home page Giter Site logo

https-github-com-newclimateinstitute / performance-distribution-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mljeffery/performance-distribution-tools

1.0 0.0 1.0 118 MB

Tools to assess collective progress on key indicators of greenhouse gas emissions reductions

License: GNU General Public License v3.0

Jupyter Notebook 89.83% Python 10.17%

performance-distribution-tools's Introduction

performance-distribution-tools

The tools in this project were developed in the context of an UBA Global Stocktake project to assess and monitor collective progress toward the Paris Agreement Goals.

The tools enable the user to explore emissions, energy and socioeconomic data to assess collective progres in a number of ways. The two key tools (1) produce histograms of averages and trends in data, and (2) examine how many countries have peaked emissions (or other variables). Some notebooks also allow the user to assess the availability of data across sectors, gases, and years.

Author: Louise Jeffery
Contact: [email protected] / [email protected]

Project begin: August, 2018
Last Update: November, 2019

====================================

Set-up and installation

The analysis can all be run using Jupyter notebooks that use the gst_tools code in this repository. Jupyter notebooks run in a browser and are easy and convenient ways to run, visualise, and document your code. Jupyter notebooks run on all platforms and can be installed following the instructions here.

Python package requirements for the performance distribution tools can be found in requirements.txt.

The country converter tool used to convert country names to ISO codes is: https://pypi.org/project/country_converter/ conda install -c konstantinstadler country_converter

Toolbox Description

Data

The tools all work on country-year data in a specified csv format. Data ready for plotting is stored in the proc-data folder in a specified format. For an example, please see the example in the proc-data/example-data folder.

Dta will commonely need to be pre-processed and formatted by the user before plotting. For the PRIMAP-hist dataset we also provide a tool for extracting the data of interest (gas, category) from the dataset version available online (see prepare-PRIMAP-hist-data-for-collective-progress-plots.ipynb).

Pre-processed data should be stored in the input-data folder. For processed data, we recommend the following naming convention for files: source-sector-entity.csv, where source is the name of the original source of the data, sector is the sector covered (e.g. economy-wide, energy, agriculture), and entity is the main variable (e.g. CO2, energy, population).

A second step of data processing is also possible with the calculate-indicators.ipnyb notebook. This notebook takes two pre-processed datasets and divides one by the other to generate variables such as "emissions per capita" or "GDP per capita".

Tools

The main tools for assessing collective progress are:

  • 'make-collective-progress-plots.ipynb'
  • 'assess-peaking-emissions.ipynb'
  • 'data-availability-map.ipynb'

Please see the notebooks themselves for more detailed descriptions.

Output

The tools currently provide two types of output. The first, is general statistics or overviews that are written to the screen in the notebooks. The second is plots generated by the scripts. These plots are automatically saved to the 'output/plots' folder.

Further information

For more information and description of the toolset, please see the forthcoming UBA report documenting the project.

performance-distribution-tools's People

Contributors

mljeffery avatar

Stargazers

Arif Cem Gundogan avatar

Forkers

wingechr

performance-distribution-tools's Issues

wrong unit in some charts

from @han-f

for some gases, the unit should be MtCO2e instead of MtCO2, for example for GHG, F-gases, HFCs, PFCs

Steps to reproduce

user_settings:

gas = "GHG"
dataset = 1
primap_sector = "M.0.EL"
data_type = "absolute"
plot_type = 1
countries = UNFCCC
country_to_highlight = ""
year_of_interest = "2019"
baseline_year = "2000"
ipcc_sector_or_subsector = "Total (excl. LULUCF)"
energy_variable = 1

grafik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.