geosemosys_kenya

GEOSeMOSYS

https://github.com/kth-desa/geosemosys_kenya

Science Score: 62.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
  • Academic publication links
    Links to: sciencedirect.com
  • Academic email domains
  • Institutional organization owner
    Organization kth-desa has institutional domain (www.energy.kth.se)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

GEOSeMOSYS

Basic Info
Statistics
  • Stars: 0
  • Watchers: 4
  • Forks: 0
  • Open Issues: 1
  • Releases: 2
Created almost 6 years ago · Last pushed over 2 years ago
Metadata Files
Readme Contributing License Citation

README.md

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: - https://www.renewables.ninja/ and get the token to download several files per hour - https://payneinstitute.mines.edu/eog/nighttime-lights/ and the password is entered in the first cell in the notebook

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.

Owner

  • Name: KTH division of Energy Systems
  • Login: KTH-dESA
  • Kind: organization
  • Location: Sweden

Citation (CITATION.cff)

cff-version: "1.2.0"
authors:
- family-names: "Moksnes"
  given-names: "Nandi"
  orcid: "https://orcid.org/0000-0002-8641-564X"
title: "GEOSeMOSYS_Kenya"
version: 1.0.0
date-released: 2022-06-07
url: "https://github.com/KTH-dESA/GEOSeMOSYS_Kenya"
message: "If you use this software, please cite our article in Energy Strategy Reviews."
preferred-citation:
  authors:
  - family-names: "Moksnes"
    given-names: "Nandi"
    orcid: "https://orcid.org/0000-0002-8641-564X"
  - family-names: "Howells"
    given-names: "Mark"
  - family-names: "Usher"
    given-names: "William"
    orcid: "https://orcid.org/0000-0001-9367-1791"
  issn: ISSN 2211-467X
  date-published: 2024-01
  journal: Energy Strategy Reviews
  publisher:
    name: Elsevier
  start: 101263
  title: "Increasing spatial and temporal resolution in energy system optimisation model – The case of Kenya"
  type: article
  url: "https://www.sciencedirect.com/science/article/pii/S2211467X23002134"
  volume: 51

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 2
  • Total pull requests: 54
  • Average time to close issues: about 7 hours
  • Average time to close pull requests: about 12 hours
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.04
  • Merged pull requests: 52
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 1 minute
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • NMoksnes (2)
Pull Request Authors
  • NMoksnes (59)
  • willu47 (1)
Top Labels
Issue Labels
enhancement (2)
Pull Request Labels

Dependencies

environment.yml conda
  • affine 2.3.0
  • alabaster 0.7.12
  • appdirs 1.4.4
  • argon2-cffi 20.1.0
  • async_generator 1.10
  • attrs 20.3.0
  • babel 2.9.1
  • backcall 0.2.0
  • backports 1.0
  • backports.functools_lru_cache 1.6.4
  • bleach 3.3.0
  • boost-cpp 1.74.0
  • boto3 1.17.60
  • botocore 1.20.60
  • brotlipy 0.7.0
  • bzip2 1.0.8
  • ca-certificates 2021.5.30
  • cached-property 1.5.2
  • cached_property 1.5.2
  • cairo 1.16.0
  • cchardet 2.1.7
  • certifi 2021.5.30
  • cffi 1.14.5
  • cfitsio 3.470
  • chardet 4.0.0
  • click 7.1.2
  • click-plugins 1.1.1
  • cligj 0.7.1
  • colorama 0.4.4
  • configargparse 1.4
  • coverage 5.5
  • cryptography 3.4.7
  • curl 7.76.1
  • cycler 0.10.0
  • datapackage 1.15.2
  • datrie 0.8.2
  • decorator 4.4.2
  • defusedxml 0.7.1
  • docutils 0.17.1
  • entrypoints 0.3
  • et_xmlfile 1.0.1
  • expat 2.3.0
  • fiona 1.8.18
  • fontconfig 2.13.1
  • freetype 2.10.4
  • freexl 1.0.6
  • gdal 3.1.4
  • geopandas 0.9.0
  • geos 3.8.1
  • geotiff 1.6.0
  • gettext 0.19.8.1
  • git 2.30.2
  • gitdb 4.0.7
  • gitpython 3.1.15
  • graphviz 2.38.0
  • greenlet 1.0.0
  • hdf4 4.2.13
  • hdf5 1.10.6
  • icu 67.1
  • idna 2.10
  • imagesize 1.2.0
  • importlib-metadata 4.0.1
  • intel-openmp 2021.2.0
  • ipykernel 5.5.3
  • ipython 7.22.0
  • ipython_genutils 0.2.0
  • ipywidgets 7.6.3
  • jdcal 1.4.1
  • jedi 0.18.0
  • jinja2 2.11.3
  • jmespath 0.10.0
  • jpeg 9d
  • jsonlines 2.0.0
  • jsonschema 3.2.0
  • jupyter 1.0.0
  • jupyter_client 6.1.12
  • jupyter_console 6.4.0
  • jupyter_core 4.7.1
  • jupyterlab_pygments 0.1.2
  • jupyterlab_widgets 1.0.0
  • kealib 1.4.14
  • kiwisolver 1.3.1
  • krb5 1.17.2
  • libblas 3.9.0
  • libcblas 3.9.0
  • libclang 10.0.1
  • libcurl 7.76.1
  • libffi 3.3
  • libgdal 3.1.4
  • libglib 2.68.1
  • libiconv 1.16
  • liblapack 3.9.0
  • libnetcdf 4.7.4
  • libpng 1.6.37
  • libpq 12.3
  • librttopo 1.1.0
  • libsodium 1.0.18
  • libspatialindex 1.9.3
  • libspatialite 5.0.1
  • libssh2 1.9.0
  • libtiff 4.2.0
  • libwebp-base 1.2.0
  • libxml2 2.9.10
  • lz4-c 1.9.3
  • m2w64-gcc-libgfortran 5.3.0
  • m2w64-gcc-libs 5.3.0
  • m2w64-gcc-libs-core 5.3.0
  • m2w64-gmp 6.1.0
  • m2w64-libwinpthread-git 5.0.0.4634.697f757
  • markupsafe 1.1.1
  • matplotlib 3.2.2
  • matplotlib-base 3.2.2
  • mistune 0.8.4
  • mkl 2020.4
  • msys2-conda-epoch 20160418
  • munch 2.5.0
  • nbclient 0.5.3
  • nbconvert 6.0.7
  • nbformat 5.1.3
  • nest-asyncio 1.5.1
  • networkx 2.5.1
  • notebook 6.3.0
  • numpy 1.20.2
  • openjpeg 2.3.1
  • openpyxl 3.0.7
  • openssl 1.1.1k
  • packaging 20.9
  • pandas 1.2.4
  • pandoc 2.13
  • pandocfilters 1.4.2
  • parso 0.8.2
  • patsy 0.5.1
  • pcre 8.44
  • pickleshare 0.7.5
  • pip 21.1
  • pixman 0.40.0
  • poppler 0.89.0
  • poppler-data 0.4.10
  • postgresql 12.3
  • proj 7.1.1
  • prometheus_client 0.10.1
  • prompt-toolkit 3.0.18
  • prompt_toolkit 3.0.18
  • psutil 5.8.0
  • pycparser 2.20
  • pygments 2.8.1
  • pyopenssl 20.0.1
  • pyparsing 2.4.7
  • pyproj 2.6.1.post1
  • pyqt 5.12.3
  • pyqt-impl 5.12.3
  • pyqt5-sip 4.19.18
  • pyqtchart 5.12
  • pyqtwebengine 5.12.1
  • pyrsistent 0.16.0
  • pysocks 1.7.1
  • python 3.7.8
  • python-dateutil 2.8.1
  • python_abi 3.7
  • pytz 2021.1
  • pywin32 300
  • pywinpty 1.0.1
  • pyyaml 5.4.1
  • pyzmq 22.0.3
  • qt 5.12.9
  • qtconsole 5.0.3
  • qtpy 1.9.0
  • rasterio 1.2.1
  • rasterstats 0.14.0
  • ratelimiter 1.2.0
  • requests 2.25.1
  • rfc3986 1.4.0
  • rioxarray 0.3.1
  • rtree 0.9.7
  • s3transfer 0.4.2
  • scipy 1.6.3
  • seaborn 0.11.1
  • seaborn-base 0.11.1
  • send2trash 1.5.0
  • setuptools 49.6.0
  • shapely 1.7.1
  • simplejson 3.17.2
  • six 1.15.0
  • smmap 3.0.5
  • snakemake-minimal 5.19.2
  • snowballstemmer 2.1.0
  • snuggs 1.4.7
  • sphinx 4.0.1
  • sphinxcontrib-applehelp 1.0.2
  • sphinxcontrib-devhelp 1.0.2
  • sphinxcontrib-htmlhelp 1.0.3
  • sphinxcontrib-jsmath 1.0.1
  • sphinxcontrib-qthelp 1.0.3
  • sphinxcontrib-serializinghtml 1.1.4
  • sqlalchemy 1.4.11
  • sqlite 3.35.5
  • statsmodels 0.12.2
  • tableschema 1.20.2
  • tabulator 1.53.5
  • terminado 0.9.4
  • testpath 0.4.4
  • tiledb 2.1.6
  • tk 8.6.10
  • toposort 1.6
  • tornado 6.1
  • traitlets 5.0.5
  • typing_extensions 3.7.4.3
  • urllib3 1.26.4
  • vc 14.2
  • vs2015_runtime 14.28.29325
  • wcwidth 0.2.5
  • webencodings 0.5.1
  • wheel 0.36.2
  • widgetsnbextension 3.5.1
  • win_inet_pton 1.1.0
  • wincertstore 0.2
  • winpty 0.4.3
  • wrapt 1.12.1
  • xarray 0.17.0
  • xerces-c 3.2.3
  • xlrd 2.0.1
  • xz 5.2.5
  • yaml 0.2.5
  • zeromq 4.3.4
  • zipp 3.4.1
  • zlib 1.2.11
  • zstd 1.4.9