Coder Social home page Coder Social logo

kimjintae9011 / pyam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iamconsortium/pyam

0.0 1.0 0.0 33.16 MB

an open-source Python package for IAM scenario analysis and visualization

Home Page: https://pyam-iamc.readthedocs.io/

License: Apache License 2.0

Batchfile 0.01% Python 95.96% Makefile 0.61% TeX 2.12% Jupyter Notebook 1.30%

pyam's Introduction

pyam: analysis & visualization
of integrated-assessment scenarios

license pypi conda latest

pytest-38 pytest-37 codecov ReadTheDocs

doi joss


Documentation on Read the Docs

Questions? Start a discussion on our mailing list

Overview and scope

The open-source Python package pyam provides a suite of tools and functions for analyzing and visualizing input data (i.e., assumptions/parametrization) and results (model output) of integrated-assessment scenarios.

Key features:

  • Simple analysis of timeseries data in the IAMC format (more about it here) with an interface similar in feel and style to the widely used pandas.DataFrame
  • Advanced visualization and plotting functions (see the gallery)
  • Diagnostic checks for scripted validation of scenario data and results

Data model

An illustrative example of the timeseries format developed by the Integrated Assessment Modeling Consortium (IAMC) is shown below. The row is taken from the IAMC 1.5°C scenario explorer, showing a scenario from the CD-LINKS project. Read the docs for more information on the IAMC format and the pyam data model.

model scenario region variable unit 2005 2010 2015
MESSAGE CD-LINKS 400 World Primary Energy EJ/y 462.5 500.7 ...
... ... ... ... ... ... ... ...

Tutorials

An introduction to the basic functions is shown in the "first-steps" notebook.

All tutorials are available in rendered format (i.e., with output) as part of the online documentation. The source code of the tutorials notebooks is available in the folder doc/source/tutorials of this repository.

Documentation

The complete documentation is hosted on Read the Docs.

The documentation pages can be built locally, refer to the instruction in doc/README.

Authors

This package was developed and is currently maintained by Matthew Gidden (@gidden) and Daniel Huppmann (@danielhuppmann).

License

Copyright 2017-2020 IIASA Energy Program

The pyam package is licensed under the Apache License, Version 2.0 (the "License"); see LICENSE and NOTICE for details.

Install

For basic instructions, read the docs.

To install from source after cloning this repository, simply run

pip install -e .

Development

To setup a development environment, the simplest route is to make yourself a conda environment and then follow the Makefile.

# pyam can be replaced with any other name
# you don't have to specify your python version if you don't want
conda create --name pyam pip python=X.Y.Z
conda activate pyam  # may be  simply `source activate pyam` or just `activate pyam`
# use the make file to create your development environment
# (you only require the -B flag the first time, thereafter you can
# just run `make virtual-environment` and it will only update if
# environment definition files have been updaed)
make -B virtual-environment

Instead of conda you could also use a pip virtualenv:

mkdir venv
virtualenv venv -p python3
. venv/bin/activate
pip install -e .[test,optional-io-formats]

To check everything has installed correctly, run

pytest tests

All the tests should pass.

pyam's People

Contributors

danielhuppmann avatar gidden avatar znicholls avatar zikolach avatar ofr-iiasa avatar rlamboll avatar khaeru avatar dependabot-preview[bot] avatar arfon avatar jkikstra avatar tirkarthi avatar fonfon avatar chilipp avatar tburandt avatar lumbric avatar rossursino avatar

Watchers

James Cloos 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.