Creating WaterStrategy scenarios and adding input files
Last updated
Last updated
In this simulation, we will model inflows under three uncertainty scenarios. To achieve this, we will create a pywr-scenario named Climate Change. Within this scenario, the following nodes will each be assigned three different time series to represent the uncertainty in inflows:
Maguga Inflow
X13_RU8
X13_RU14
X13_RU15
X13_RU16
Each time series corresponds to a different potential climate scenario, allowing us to assess how varying inflow conditions may impact the water system. The inflow data for these nodes will be loaded from an H5 file, which contains the time series data for each node under the different scenarios.
The nodes will access this data through the DataFrameParameter, using the scenario key to select the appropriate time series for each simulation run.
In the Network, click on View Network Data icon
This will open the right panel. In the section Inputs, type "scenarios" and click on Add an Input icon
A window will be displayed, type "scenarios", select the scenarios attribute and click Save as shown in the following image
Click Edit scenarios
A new window will pop up, select PYWR_SCENARIOS and click Save
Once the scenario customization panel is open, click on Edit the default pywr-scenario, update the values and click Save
Now our pywr-scenario has been activated:
Inflows represented by catchment nodes will read the file Incomati_inflows_scns.h5 through a DataFrameParameter, to configure:
Double click on the catchment node and Edit the Flow attribute
In Options tab, select PYWR_PARAMETER
Paste the following JSON configuration and Save
Repeat the steps for all the inflows:
X13_RU8
X13_RU14
X13_RU15
X13_RU16