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
.zipfile (80 KB) with all files.
Take care to not disrupt the directory structure. Set up the new environment in the directorywindc_datastream. -
Create the
windcenvironment by running the following command on the command line or terminal in thewindc_datastreamdirectory:Verify that the new environment was created properly with this command:conda env create -f windc.yml
For more information on environment creation and management in Conda, see the official documentation.conda info --envs
-
Install the GAMS Python 3.6 API files manually in the
windcenvironment. Enter the new environment with the following command:Then follow the instructions on the GAMS website.conda activate windc
-
Install the Python package
gdxtoolsin thewindcenvironment. Adam Christensen created this package to facilitate exchanging data between Python and GAMS. Use the following command:Note that this install will fail if the GAMS API was not properly installed in step 3.pip install gdxtools
-
Verify that the GAMS and
gdxtoolspackages have been successfully installed in thewindcenvironment by entering:conda list
Your Python environment is now ready!
Back to datastream documentation.