/calliope

High-resolution open-source energy modelling framework in Python

Primary LanguagePythonApache License 2.0Apache-2.0

Build status on Mac/Linux Build status on Windows Test coverage PyPI version badge_license


https://raw.githubusercontent.com/calliope-project/calliope/master/doc/_static/logo.png

A multi-scale energy systems (MUSES) modeling framework | www.callio.pe



Calliope is a framework to develop energy system models, with a focus on flexibility, high spatial and temporal resolution, the ability to execute many runs based on the same base model, and a clear separation of framework (code) and model (data).

A model based on Calliope consists of a collection of text files (in YAML and CSV formats) that define the technologies, locations and resource potentials. Calliope takes these files, constructs an optimization problem, solves it, and reports results in the form of Pandas and xarray data structures for easy analysis with Calliope's built-in tools or the standard Python data analysis stack.

A simple example model is included with Calliope.

A more elaborate example is UK-Calliope, which models the power system of Great Britain (England+Scotland+Wales).

Calliope can be run from the command line:

$ calliope new example  # Create a copy of the example model, in the `example` dir

$ calliope run example/run.yaml  # Run the model by pointing to its run configuration file

It can also be run interactively from a Python session:

import calliope
model = calliope.Model('path/to/run.yaml')
model.run()
solution = model.solution  # An xarray.Dataset

Documentation is available on Read the Docs:

See changelog.rst.

If you use Calliope, please cite the following paper:

Stefan Pfenninger and James Keirstead (2015). Renewables, nuclear, or fossil fuels? Scenarios for Great Britain's power system considering costs, emissions and energy security. Applied Energy, 152, pp. 83–93. doi: 10.1016/j.apenergy.2015.04.102

All Calliope releases are archived on Zenodo and you can also refer to specific versions of Calliope with their Zenodo DOI. The most recent archived version is: link-latest-doi

Copyright 2013-2016 Stefan Pfenninger

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.