Git Product home page Git Product logo

ar6_demo's Introduction

AR6 Scenario Explorer Analysis-Demo

This project involves analyzing some salient aspects of the AR6 Scenario Explorer and creating a set of figures and tables to illustrate the findings using pyam. The analysis includes exploring emission trajectories and energy system configurations.

Introduction

The AR6 Scenario Explorer provides a comprehensive database of scenarios for exploring the impacts of climate change on various aspects of the environment. In this project, we analyzed the data to gain insights into the emission trajectories and energy system configurations in the different scenarios.

Installation

To install the required dependencies, please run the following command:

pip:

pip install pyam

conda/mamba:

conda install -c conda-forge pyam

Database

To download the AR6 Scenario Explorer database, visit https://data.ece.iiasa.ac.at/ar6/#/downloads and download the desired files. For this project, we used the AR6_Scenarios_Database_R5_regions_v1.1 file. df = pyam.IamDataFrame(data='AR6_Scenarios_Database.csv'

Usage

The analysis was performed using pyam to extract relevant data and create visualizations. The Jupyter notebook containing the analysis and figures can be found in the notebooks directory.

The figures generated include:

  • Emission trajectories for different scenarios
  • Energy system configurations for different scenarios

Here's an example:

import numpy as np
import matplotlib.pyplot as plt
import pyam
# import AR6 database
df = pyam.IamDataFrame(data='AR6_Scenarios_Database.csv')
# Filtering for model='MESSAGE*' 
df.filter(model='MESSAGE*').scenario
# Displaying
display_df = df.filter(model='MESSAGE*',scenario ='CD-LINKS_NPi2020_1000', variable='Primary Energy|*CCS', level='1-', region='R5OECD90+EU')
display_df.timeseries()
# Plotting
data = df.filter(model='MESSAGE*',scenario ='CD-LINKS_NPi2020_1000', variable='Primary Energy|*CCS', level='1-', region='R5OECD90+EU')

data.plot.stack(stack="variable", cmap="tab20", total=True)
plt.legend(loc=1)
plt.tight_layout()
plt.show()

image

Contribution

Please feel free to cooperate and discuss!

License

This project is licensed under the open source MIT License.

ar6_demo's People

Contributors

pingping1997 avatar

Watchers

 avatar

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.