Recorders¶
Base Recorder classes¶
All the Recorder subclasses in pywr are descended from a common base class.
|
Base class for recording information from a pywr.model.Model. |
|
|
|
|
|
Base class for recorders that track Parameter values. |
|
|
|
Utility class for computing aggregate values. |
Numpy array recorders¶
The following parameters are used for storing results in memory. The data can be accessed following a model run before the model instances is destroyed.
|
Recorder for timeseries information from a Node. |
|
Recorder for timeseries information from a Storage node. |
Recorder for level timeseries from a Storage node. |
|
Recorder for area timeseries from a Storage node. |
|
|
Recorder for timeseries information from a Parameter. |
|
Recorder for timeseries information from an IndexParameter. |
Recorder for an annual profile from a Parameter. |
Flow duration curve recorders¶
|
This recorder calculates a flow duration curve for each scenario. |
|
This recorder calculates a storage duration curve for each scenario. |
|
This recorder calculates a Flow Duration Curve (FDC) for each scenario and then calculates their deviation from upper and lower target FDCs. |
|
This recorder calculates a flow duration curve for each scenario for a given season specified in months. |
Deficit recorders¶
Recorder for timeseries of deficit from a Node. |
|
Recorder for timeseries of ratio of supplied flow from a Node. |
|
Recorder for timeseries of curtailment ratio from a Node. |
|
Recorder to total the difference between modelled flow and max_flow for a Node |
|
Recorder to return the frequency of timesteps with a failure to meet max_flow. |
Statistical recorders¶
|
This Recorder is used to aggregate across multiple other Recorder objects. |
|
Record the mean flow for a Node. |
|
Recorder to total the flow for a Node. |
|
For each scenario, record the total flow in each year across a list of nodes. |
|
Record the mean value of a Parameter during a simulation. |
|
Record the total value of a Parameter during a simulation. |
|
Records the mean flow of a Node for the previous N timesteps |
Record the minimum volume in a Storage node during a simulation. |
|
|
Record whether a Storage node falls below a particular volume threshold during a simulation. |
|
Record the number of times an index parameter exceeds a threshold for each scenario. |
|
For each scenario, count the number of times a list of parameters exceeds a threshold in each year. |
|
Records the mean value of a Parameter for the last N timesteps. |
Index recorders¶
|
Record the number of years where an IndexParameter is greater than or equal to a threshold |
File recorders¶
|
A Recorder that saves Node values to a CSV file. |
|
A recorder that saves to PyTables CArray |
Hydro-power recorders¶
|
Calculates the power production using the hydropower equation |
|
Calculates the total energy production using the hydropower equation from a model run. |