Description
|
Average a slot’s values over a time range, for each object in a subbasin.
|
Type
|
LIST {LIST {OBJECT, NUMERIC}}
|
Arguments
|
Type
|
Meaning
|
1
|
STRING
|
Subbasin name
|
2
|
STRING
|
slot name
|
3
|
STRING
|
aggregation filter ("INPUT", "OUTPUT", or "ALL")
|
4
|
BOOLEAN
|
time conversion option ("TRUE" or "FALSE")
|
5
|
DATETIME
|
start datetime
|
6
|
DATETIME
|
end datetime
|
Evaluation
|
A list of slots is generated by searching all of the objects in the Subbasin argument for slots which match the slot name argument. For each object, the slot’s values are averaged over every timestep in the range of the datetime arguments. Any values which do not satisfy the aggregation filter argument are ignored during the calculation. If the time conversion option argument is TRUE, and the values to be aggregated are of the FLOW unit type, the values are first multiplied by their corresponding timestep length to convert them to values of the unit type VOLUME.
|
Mathematical Expression
|
|
Comments
|
If the time conversion option argument is TRUE, but the unit of the slot values is not FLOW, this function aborts the run with an error. If none of the values for a slot satisfy the aggregation filter argument, this function also aborts RiverWare with an error.
|