The above code defines 3 reservoir control curves for the reservoir called "Reservoir name". It returns an Index depending on how full the reservoir is:
To see how this index is used with an Indexed Array Parameter click here.
A control curve Parameter that interpolates between three or more values.
Return values are linearly interpolated between control curves, with the first and last value being 100% and 0% respectively. API Reference
storage_node
An optional Storage node that can be used to query the current percentage volume
Yes
control_curves
The Parameter objects to use as a control curve(s)
Yes
values
A list of values to return corresponding to the control curves. The length of the list should be 2 + len(control_curves)
Yes
parameters
If values is None then parameters can specify a Parameter object to use at each of the control curves. The number of parameters should be 2 + len(control_curves)
Yes
coming soon...
A control curve Parameter that interpolates between two or more pairs of values.
Return values are linearly interpolated between a pair of values depending on the current storage. The first pair is used between maximum and the first control curve, the next pair between the first control curve and second control curve, and so on until the last pair is used between the last control curve and the minimum value. The first value in each pair is the value at the upper position, and the second the value at the lower position.
coming soon...
storage_node
An optional Storage node that can be used to query the current percentage volume
Yes
control_curves
The Parameter objects to use as a control curve(s)
Yes
storage_node
The storage node to compare the control curve(s) to
Yes
control_curves
A list of parameters representing the control curve(s). These are often MonthlyProfileParameters or DailyProfileParameters, but may be any Parameter that returns values between 0.0 and 1.0. If floats are passed they are converted to ConstantParameter
Yes
values
A list of value pairs to interpolate between. The length of the list should be 1 + len(control_curves)
Yes
minimum
The storage considered the bottom of the lower curve, 0-1 (default=0)
Yes
maximum
The storage considered the top of the upper curve, 0-1 (default=1)
Yes