Excerpt | ||
---|---|---|
| ||
SumInterval: This transformation creates cumulative curves from the input time series within several intervals. The intervals are defined by the specified intervalTimeStep. |
Information
Transformation: | SumInterval |
---|---|
Transformation Group: | Accumulation |
Description: | This transformation creates cumulative curves from the input time series within several intervals. The intervals are defined by the specified intervalTimeStep. For a given interval the first output value equals the first input value within the interval and the other output values are equal to the sum of the corresponding input value and all previous input values within the interval. The startTime of an interval is exclusive and the endTime of an interval is inclusive. The output time series must have the same timeStep as the input time series. In case the transformation is from instantaneous/mean to accumulated, the result is multiplied by the timestep. |
...
Configuration Example
Code Block | ||||
---|---|---|---|---|
| ||||
<Config> Config example in this box for copy & paste </Config> <?xml version="1.0" encoding="UTF-8"?> <transformationModule version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd"> <variable> <variableId>input</variableId> <timeSeriesSet> <moduleInstanceId>AccumulationSumInterval</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.m</parameterId> <locationId>H-2001</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="minute" multiplier="15"/> <relativeViewPeriod unit="hour" start="0" end="10"/> <readWriteMode>editing visible to all future task runs</readWriteMode> </timeSeriesSet> </variable> <variable> <variableId>output</variableId> <timeSeriesSet> <moduleInstanceId>AccumulationSumInterval</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.sum</parameterId> <locationId>H-2001</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="minute" multiplier="15"/> <relativeViewPeriod unit="hour" start="0" end="10"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </variable> <transformation id="accumulation sum interval"> <accumulation> <sumInterval> <inputVariable> <variableId>input</variableId> </inputVariable> <intervalTimeStep unit="hour" multiplier="1"/> <ignoreMissing>false</ignoreMissing> <outputVariable> <variableId>output</variableId> </outputVariable> </sumInterval> </accumulation> </transformation> </transformationModule> |