Skip to content
Is your European region able to provide itself with 100% renewable electricity?
TeX Python Jupyter Notebook Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
data
envs
notebooks
report
rules
src
tests
.gitignore
.syncignore
.syncignore-build
CITATION.md
LICENSE.md
README.md
Snakefile
environment.yaml

README.md

Possibility for renewable electricity autarky in Europe

Is your European region able to provide itself with 100% renewable electricity?

This repository contains the entire research project, including code and report. The philosophy behind this repository is that no intermediary results are included, but all results are computed from raw data and code.

article DOI data DOI code DOI

Getting ready

Installation

The following dependencies are needed to set up an environment in which the analysis can be run and the paper be build:

When these dependencies are installed, you can create a conda environment from within you can run the analysis:

conda env create -f environment.yaml

Don't forget to activate the environment. To see what you can do now, run:

snakemake --list

Data to be retrieved manually

Whenever possible, data is downloaded automatically. As this is not always possible, you will need to retrieve the following data sets manually:

Run the analysis

snakemake --use-conda paper

This will run all analysis steps to reproduce results and eventually build the paper.

You can also run certain parts only by using other snakemake rules; to get a list of all rules run snakemake --list.

To generate a PDF of the dependency graph of all steps, run:

snakemake --rulegraph | dot -Tpdf > dag.pdf

(needs dot: conda install graphviz).

Run on Euler cluster

To run on Euler, use the following command:

snakemake --use-conda --profile config/euler

If you want to run on another cluster, read snakemake's documentation on cluster execution and take config/euler as a starting point.

Manual steps

At the moment, there is one manual step involved: running renewables.ninja simulations of wind and solar electricity. It is added to the automatic workflow as input data. Should you want to change the simulations, because you want to change parameters of the simulation (see parameters.ninja in the config), you can do that in three steps:

  1. Create input files by first changing the config, then running snakemake -s rules/ninja-input.smk.
  2. Run the simulations on renewables.ninja.
  3. Update the data in data/capacityfactors/{technology}.

Run the tests

snakemake --use-conda test

Repo structure

  • report: contains all files necessary to build the paper; plots and result files are not in here but generated automatically
  • src: contains the Python source code
  • tests: contains the test code
  • config: configurations used in the study
  • rules: additional Snakemake rules and workflows
  • data: place for raw data, whether retrieved manually and automatically
  • build: will contain all results (does not exist initially)

Citation

If you use this code or data in an academic publication, please see CITATION.md.

License

The code in this repo is MIT licensed, see ./LICENSE.md. This excludes the KlinicSlab font family (all files in ./report/fonts/) which is copyright Lost Type.

You can’t perform that action at this time.