Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 2.53 KB

README.md

File metadata and controls

44 lines (31 loc) · 2.53 KB

GEOSeMOSYS_Kenya

This repository is for the paper

Increasing spatial and temporal resolution in energy system optimisation model – The case of Kenya

Nandi Moksnes (1) *, Mark Howells (2,3), William Usher (1)

  1. KTH Royal Institute of Technology
  2. STEER Centre, Department of Geography & Environment, Loughborough University, UK
  3. Imperial College, London, United Kingdom

To be able to run the model you need to have approx 256 GB RAM. This model has been run on a High performance cluster at KTH. The shell file is therefor applicable for the HPC at PDC Dardel from SNIC (Swedish National Infrastructure for Computing).

The whole workflow is run in Jupyter Notebook. The work flow is only tested on a Windows computer, therefore there might be small adjustements needed for other OS.

image

Python dependencies

The workflow has a number packages that needs to be installed.

The easiest way to install the Python packages is to use miniconda.

Obtain the miniconda package (https://docs.conda.io/en/latest/miniconda.html):

  1. Add the conda-forge channel: conda config --add channels conda-forge
  2. Create a new Python environment: conda env create -f environment.yml
  3. Activate the new environment: conda activate geosemosys

R

To download the capacityfactors for solar and wind you need to have R on your computer. You can download R for free https://www.r-project.org/ You also need to install the package "curl" which you install through the R commander

install.packages("curl")

Required accounts (free to register)

To run the code you need to create accounts in the following places:

Run the model

To run the code go the src folder and write: juputer notebook and then open the src/GEOSeMOSYS - exploring linear programming geospatial modelling.ipynb

Run the code step by step. The building of the model takes about 24 hours to run. This is related to several aspects. One of the functions clips the vector file of the 11 kV transmission lines which consists of several hundreds of lines. The renewables.ninja account only allows for 50 download per hour which (if you have many locations and technologies) makes the run longer.