Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 13 DOI reference(s) in README
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: donkee96
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Size: 86.3 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Contributing License Citation Authors

README.md

pyam: analysis & visualization
of integrated-assessment and macro-energy scenarios

license pypi conda last-release

Code style: ruff python pytest ReadTheDocs codecov

doi ORE joss groups.io slack


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 models, macro-energy scenarios, energy systems analysis, and sectoral studies.

The comprehensive documentation is hosted on Read the Docs!

Key features

  • Simple analysis of scenario timeseries data with an interface similar in feel & style to the widely used pandas.DataFrame
  • Advanced visualization and plotting functions (see the gallery)
  • Scripted validation and processing of scenario data and results

Timeseries types & data formats

Yearly data

The pyam package was initially developed to work with the IAMC template, a timeseries format for yearly data developed and used by the Integrated Assessment Modeling Consortium (IAMC).

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

An illustration of the IAMC template using a scenario from the CD-LINKS project
via the The IAMC 1.5C Scenario Explorer

Subannual time resolution

The package also supports timeseries data with a sub-annual time resolution: - Continuous-time data using the Python datetime format - "Representative timeslices" (e.g., "winter-night", "summer-day") using the pyam extra-columns feature

Read the docs for more information about the pyam data model or look at the data-table tutorial to see how to cast from a variety of timeseries formats to a pyam.IamDataFrame.

Installation

pip

[!WARNING] The pyam package is distributed on https://pypi.org under the name pyam-iamc.

https://pypi.org/project/pyam-iamc/

Please install using pip install pyam-iamc

conda

https://anaconda.org/conda-forge/pyam

Please install using conda install pyam

install from source

To install from source (including all dependencies) after cloning this repository, run

pip install --editable .[tests,optional_io_formats,tutorials]

To check that the package was installed correctly, run

pytest tests

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 docs/tutorials of this repository.

Documentation

The comprehensive documentation is hosted on Read the Docs.

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

Authors & Contributors

This package was initiated and is currently maintained by Matthew Gidden (@gidden) and Daniel Huppmann (@danielhuppmann). See the complete list of contributors.

The core maintenance of the package is done by the Scenario Services & Scientific Software research theme at the IIASA Energy, Climate, and Enviroment program. Visit https://software.ece.iiasa.ac.at for more information.

Scientific publications

The following manuscripts describe the pyam package at specific stages of development.

The source documents are available in the manuscripts folder of the GitHub repository.

Release v1.0 (June 2021)

Published to mark the first major release of the pyam package.

Daniel Huppmann, Matthew Gidden, Zebedee Nicholls, Jonas Hrsch, Robin Lamboll, Paul Natsuo Kishimoto, Thorsten Burandt, Oliver Fricko, Edward Byers, Jarmo Kikstra, Maarten Brinkerink, Maik Budzinski, Florian Maczek, Sebastian Zwickl-Bernhard, Lara Welder, Erik Francisco Alvarez Quispe, and Christopher J. Smith. pyam: Analysis and visualisation of integrated assessment and macro-energy scenarios. Open Research Europe, 2021. doi: 10.12688/openreseurope.13633.2

Release v0.1.2 (November 2018)

Published following the successful application of pyam in the IPCC SR15 and the Horizon 2020 CRESCENDO project.

Matthew Gidden and Daniel Huppmann. pyam: a Python package for the analysis and visualization of models of the interaction of climate, human, and environmental systems. Journal of Open Source Software (JOSS), 4(33):1095, 2019. doi: 10.21105/joss.01095.

License

Copyright 2017-2024 IIASA and the pyam developer team

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

Owner

  • Name: Tongkyu Kim
  • Login: donkee96
  • Kind: user
  • Location: Republic of Korea
  • Company: Ministry of Foreign Affairs

Researcher at the Climate and Energy Cooperation Center of the Korean Ministry of Foreign Affairs.

Citation (CITATION.cff)

cff-version: 1.1.0
message: "If you use this package, please cite the corresponding manuscript in Open Research Europe."
title: "pyam: analysis and visualization of integrated-assessment and macro-energy scenarios"
repository: https://github.com/iamconsortium/pyam
version: 1.0
license: Apache-2.0
journal: Open Research Europe
doi: 10.12688/openreseurope.13633.2
authors:
  - family-names: Huppmann
    given-names: Daniel
    orcid: https://orcid.org/0000-0002-7729-7389
  - family-names: Gidden
    given-names: Matthew J.
    orcid: https://orcid.org/0000-0003-0687-414X
  - family-names: Nicholls
    given-names: Zebedee
    orcid: https://orcid.org/0000-0002-4767-2723
  - family-names: Hörsch
    given-names: Jonas
    orcid: https://orcid.org/0000-0001-9438-767X
  - family-names: Lamboll
    given-names: Robin D.
    orcid: https://orcid.org/0000-0002-8410-037X
  - family-names: Kishimoto
    given-names: Paul Natsuo
  - family-names: Burandt
    given-names: Thorsten
  - family-names: Fricko
    given-names: Oliver
  - family-names: Byers
    given-names: Edward
  - family-names: Kikstra
    given-names: Jarmo S.
    orcid: https://orcid.org/0000-0001-9405-1228
  - family-names: Brinkerink
    given-names: Maarten
  - family-names: Budzinski
    given-names: Maik
    orcid: https://orcid.org/0000-0003-2879-1193
  - family-names: Maczek
    given-names: Florian
  - family-names: Zwickl-Bernhard
    given-names: Sebastian
  - family-names: Welder
    given-names: Lara
  - family-names: Alvarez Quispe
    given-names: Erik Francisco
    orcid: https://orcid.org/0000-0003-3862-9747
  - family-names: Smith
    given-names: Christopher J.
keywords:
  - integrated assessment
  - energy systems
  - macro-energy
  - modelling
  - scenario analysis
  - data visualisation
  - Python package

GitHub Events

Total
  • Create event: 13
Last Year
  • Create event: 13

Dependencies

.github/workflows/nightly.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • r-lib/actions/setup-pandoc v2 composite
  • snok/install-poetry v1 composite
.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pypa/gh-action-pypi-publish v1.4.1 composite
  • snok/install-poetry v1 composite
.github/workflows/pytest-legacy.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • snok/install-poetry v1 composite
.github/workflows/pytest.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • codecov/codecov-action v4 composite
  • snok/install-poetry v1 composite
.github/workflows/ruff.yml actions
  • actions/checkout v4 composite
  • chartboost/ruff-action v1 composite
poetry.lock pypi
  • 183 dependencies
pyproject.toml pypi
  • python-calamine >=0.2.3 calamine
  • coverage >=6.5.0 develop
  • coveralls >=3.3.1 develop
  • pytest >=8.0.2 develop
  • pytest-cov >=4.1.0 develop
  • pytest-mpl >=0.17.0 develop
  • ruff >=0.2.1 develop
  • autodocsumm >=0.2.12 docs
  • kaleido >=0.2.0, <0.2.1.post docs
  • nbsphinx >=0.9.3 docs
  • numpydoc >=1.6.0 docs
  • pillow >=10.2.0 docs
  • sphinx >=7.2.6 docs
  • sphinx-gallery >=0.15.0 docs
  • datapackage >=1.15.2 optional_io_formats
  • xarray >=2024.6.0 optional_io_formats
  • xlrd >=2.0.1 optional_io_formats
  • plotly >=5.19.0 optional_plotting
  • Pint >=0.13
  • PyYAML >=6.0.1
  • XlsxWriter >=3.0.3
  • iam-units >=2020.4.21
  • ixmp4 >=0.9.0
  • matplotlib >=3.6.0
  • numpy >=1.26.0
  • openpyxl >=3.1.2
  • pandas >=2.1.2
  • python >=3.10, <3.14
  • requests >2.27.1
  • scipy >=1.10.0
  • seaborn >=0.11
  • wquantiles >=0.6
  • ipykernel >=6.29.3 tutorials
  • jupyter_client >=8.6.0 tutorials
  • nbconvert >= 7.3 tutorials
  • nbformat >=5.9.2 tutorials
  • pypandoc >=1.13 tutorials
  • unfccc_di_api >=3.0.1 unfccc
  • wbdata >=1.0.0 wbdata