The WiNDC 2.0 Environment
This document describes how to set up the proper Python environment for the WiNDC 2.0 data stream.
The files that facilitate data processing are written in Python 3.6. Python code relies on Python packages, so you first need to create the proper Python environment where all necessary packages are installed. We assume that your package manager is Conda and that it is already installed on your machine. Please consult the Anaconda webpage for more details.
Setting up the WiNDC 2.0 environment
-
Download the files of the WiNDC data stream from
GitHub.
Click on the button "Clone or Download" to clone the repository to your local machine
or simply download a
.zip
file (80 KB) with all files.
Take care to not disrupt the directory structure. Set up the new environment in the directorywindc_datastream
. -
Create the
windc
environment by running the following command on the command line or terminal in thewindc_datastream
directory:conda env create -f windc.yml
conda info --envs
-
Install the GAMS Python 3.6 API files manually in the
windc
environment. Enter the new environment with the following command:conda activate windc
-
Install the Python package
gdxtools
in thewindc
environment. Adam Christensen created this package to facilitate exchanging data between Python and GAMS. Use the following command:pip install gdxtools
-
Verify that the GAMS and
gdxtools
packages have been successfully installed in thewindc
environment by entering:conda list
Your Python environment is now ready!
Back to datastream documentation.