Welcome to CLEWsy - the Climate, Land, Energy and Water systems modelling framework tools repository.\ clewsy is a Python package which provides a command-line interface for building CLEWs models using OSeMOSYS.
Country Code 3 letters ==
CLEWS-CCD.yaml parametrization file: CCD == 3 letter alphanumeric Code
clewsy input directory: data-inp
Should contain: gaezclstr-
clewsy output directory: data-out Directory is created if not present. gaezclstr-ccd/*.csv generated here
1- Input Data set preparation:
[geofilter|canada + remove other technologies] >> 'osemosys_global' >>
[./data-inp/osemosys-<ccd>/\*.csv]
GAEZ[Land & Water Database] >> Clustering scripts >> [./data-inp/gaezclstr-<ccd>/\*.csv]
2- clewsy:
[./data-inp/gaezclstr-<ccd>/\*.csv + <clewsy parametrization file == CLEWS-CCD.yaml> +
./data-inp/osemosys-<ccd>/\*.csv] >>
python src/build/build.py >>
./data-out/gaezclstr-<ccd>/\*.csv
Supported OutputFormat == MoManI; otoole::Update; otoole::Append
OS baseline required: Ubuntu 20.04LTS w/ stock kernel 5.4.0-136-generic\ Note:
Note: The following manual installation steps will be automated (scripted) in subsequent releases of clewsy
On the Ubuntu 20.04 LTS console please run the following commands: 1) Install python-yaml\ REF: How do I install the yaml package for Python?
$ apt install python-yaml
2) Install Python Preferred Installer Program (PIP) for python\
**REF:** [How to Install Python Pip on Ubuntu 20.04](https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04)
$ mkdir -p /home/python $ pushd /home/python $ curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py $ sudo python2 get-pip.py
3) Install colorama for python\ REF: Python module not found even though "Requirement Already satisfied in Pip"
$ python -m pip install colorama
4) Clone & Configure repo
- Get clewsy & parametrize:
$ cd
$ git clone [https://github.com/OSeMOSYS/otoole.git](https://github.com/OSeMOSYS/otoole.git)
Ensure otoole 1.0.0 is installed
$ pip3 install otoole==1.0.0
$ cd <clewsy_dir>\
$ ./src/build/clewsy.py CLEWS-CCD.yaml\
**E.g.:**\
$./src/build/clewsy.py CLEWS-CAN.yaml
For csv file output:
$ otoole --verbose convert csv datafile data-out data-test-KEN.txt config_otoole.yaml
For xlsx file output:
$ otoole --verbose convert csv excel data-out data-test-KEN.xlsx config_otoole.yaml
clewsy 1.0 is Phase 1 of clewsy restructuring starting commit id 6a6ef52798caa1ec13bbb92285945881bbb33e62\ Objective is to have clewsy.py be completely parametrized by CLEWS-CCD.yaml.\ Ideally every region/country specific application of clewsy should only adapt CLEWS-CCD.yaml with no changes to clewsy.py
clewsy 1.0 has been tested on linux platforms for both Canada and Kenya.\ Refer examples/CLEWS-CAN.yaml, CLEWS-KEN.yaml
Objective with further point releases will be to stabilize the code (clewsy.py) and data (CLEWS-CCD.yaml) separation.
Focus will be for packaged distrubution to run across different operating platforms- Linux, Windows
New ideas and bugs should be submitted: <https://github.com/OSeMOSYS/clewsy/issues/new>
_ to the repository Issue Tracker.
When using clewsy for publications and reports, please cite: T. Niet and A. Shivakumar (2020): clewsy: Script for building CLEWs models.