Flow Accumulator Gage (Compute Period Average
Flows)
flowAccumulatorGageProcessor(TimeSeriesMath
tsCounts)
Derive a new time series of period-average flows from a flow accumulator type gage. The current time series is assumed to containe the accumulated flow data, while the parameter time series, tsCounts, is assumed to have the corresponding time series of counts. The two time series data sets must match times exactly. The two time series are combined to compute a new time series of period average flow:
TsNew(t) = ( TsAccFlow(t) - TsAccFlow(t-1) ) /
( TsCount(t) - TsCount(t-1) )
where TsAccFlow is the gage accumulated flow time series and TsCount is the gage time series of counts.
In the above equation, if TsAccFlow(t), TsAccFlow(t-1), TsCount(t) or TsCount(t-1) are missing, TsNew(t) is set to missing. The new time series is assigned the data type "PER-AVER".
Parameters:
tsCounts – A TimeSeriesMath object containing the counts.
Example:
tsPerAvgFlow =
tsAccumFlow.flowAccumulatorGageProcessor(tsCounts)
Returns: A new TimeSeriesMath object.
Generated Exceptions: Throws
a hec.hecmath.HecMathException if times in the current object do not
exactly match the times in tsCounts.