Pywr-scenarios reading external DataFrame and adding Custom Rules
Last updated
Last updated
In this tutorial, we will be working with the Thames Network, which you receive a copy of automatically when you create a WaterStrategy account.
The steps covered include:
Updating Lee Valley Demand: We will read and update the Lee Valley Demand data from an external CSV file containing a time series.
Applying Climate Change Uncertainty: Climate change uncertainties will be introduced by activating pywr-scenarios. These uncertainties will be applied to two catchment nodes (inflows), adjusting the inflow conditions based on specified scenarios.
Adding a Custom Rule: You will learn how to create a Custom Rule, a powerful tool that allows for the expansion and integration of WaterStrategy functionality. In this example, a new parameter will be created to dynamically increase the maximum volume of a reservoir on a specific date, as defined by the user.
By the end of this tutorial, you will be equipped to manage and customize various aspects of the Thames network within WaterStrategy, utilizing time series data, uncertainty scenarios, and custom rules.
You will manually upload the required files, so make sure to save them on your computer for easy access during the tutorial
To get started, in Project Training Material, open Thames network
Clone Scenario 1