Git Product home page Git Product logo

onsset-afghanistan's Introduction

OnSSET_Afghanistan

Python implementation of the Open Source Spatial Electrification Tool (OnSSET) for Afghanistan.

Content

This repository contains the source code for the OnSSET model customized for the case study of Afghanistan. Note that a new version of the model that takes into account the effect of conflict has been added separately in January 2019. Code and files related to this version can be identified by the tag "Conflict" in their in the conflict branch. In both cases the model works in similar manner as described below.

How-to-use Instructions

  1. Clone repository in a directory of your preference
  2. Open onsset.py and runner.py in the IDE of your preference (Pycharm is suggested)
  3. Install dependencies
  4. Make sure that specs.xlsx and Afghanistan.csv files are in the same directory. Both files shall follow the format and naming convention as shown in the sample files in this repository. Parameter values can be changed accordingly
  5. Run onsset.py and make sure there is no error
  6. Run runner.py a. Select to calibrate the Afghanistan.csv as per instructions b. After calibration (taking place only once) start running scenarios as per instructions
  7. After a scenario is run two output files will appear in the directory; one containing full results and another providing a summary.
  8. Import the full result scv file into a GIS environment (QGIS, ArcMap) to vizualize the results.

Cautions

The first input file (specs.xlsx) contains most of the inputs parameters of the analysis such as total population, urban population ratio, diesel price etc.

The second input file (Afghanistan.csv) contains all the GIS information (21 columns) for the settlements to be included in the analysis. This csv file has by convention the same name with the country it represents (e.g. in this case "Afghanistan.csv").

The sample files in this repository provide low granularity and shall only be used as test beds. KTH dESA has prepared a proper version of the Afghanistan.csv file able to run the electrification analysis with 1 km spatial resolution. Access information can be found below.

Supplementary material

  • The GIS layers that have been used in this analysis are available at Energydata.info.

  • Input file in higher granularity (1 km spatial resolution) can be downloaded from here.

  • More information regarding running OnSSET is available at OnSSET manual.

  • A GIS based least cost electrification analysis for Afghanistan is available here.

  • An academic publication supporting this work is available here.

  • For any additional information please contact the KTH team here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.