Information
|| Transformation: | Sum ||
|| Transformation Group: | Accumulation ||
|| Description: | Calculates the sum of the input for the output period. In case the input is instantaneous or mean and the output is accumulation, then the sum is multiplied by the duration of the input time step in seconds.||
Hydrological Information
|| Purpose and use of Transformation: | This transformation can for instance be used to report the accumulated sum of the discharge per month. ||
|| Background and Exceptions: | In case the input is instantaneous or mean and the output is accumulation, the unit of the input must be unit/s. The input type (scalar or grid) must be the same as the output type and their timestep must be regular. In case the _ignoreMissing_ value is set to _false_, once a missing value is encountered, the output will only contain missing values after that time step. ||
Input
*inputVariable* Regular scalar timeseries or regular grid.
Options
*ignoreMissing* Treat a missing value as 0 (default true).
CoefficientSets
_No connection to CoefficientSets._
Output
*outputVariable* Accumulated sum of the input data.
Configuration Example
_Configuration example for calculation of the mean discharge volume per event for each month._
<?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"> <\!-\- input variables \--> <variable> <variableId>input</variableId> <timeSeriesSet> <moduleInstanceId>AccumulationSum</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.m</parameterId> <locationId>H-2001</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="day"/> <relativeViewPeriod unit="day" start="0" end="30"/> <readWriteMode>editing visible to all future task runs</readWriteMode> </timeSeriesSet> </variable> <\!-\- output variables \--> <variable> <variableId>output</variableId> <timeSeriesSet> <moduleInstanceId>AccumulationSum</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q.m</parameterId> <locationId>H-2001</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="day"/> <relativeViewPeriod unit="day" start="5" end="25"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </variable> <\!-\- transformations \--> <transformation id="accumulation sum"> <accumulation> <sum> <inputVariable> <variableId>input</variableId> </inputVariable> <ignoreMissing>false</ignoreMissing> <outputVariable> <variableId>output</variableId> </outputVariable> </sum> </accumulation> </transformation> </transformationModule>