Page tree
Skip to end of metadata
Go to start of metadata


This transformation takes a time series, and replaces the values to the highest value, that has been observed up to that point. It ignores unreliable values. 

Example:

input:     0 1 5 2 3 7 3 3 

output:  0 1 5 5 5 7 7 7


The transformation supports scalar and grid time series. The input and the output types have to be the same. In case of an grid type time series set, the grid geometry must be the same for each time step.

Configuration example:

Scalar:

<?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>AccumulationMaxTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>H.m</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="hour" multiplier="1"/>
         <relativeViewPeriod unit="day" start="0" end="3"/>
         <readWriteMode>editing visible to all future task runs</readWriteMode>
      </timeSeriesSet>
   </variable>
   <!-- output variables -->
   <variable>
      <variableId>output</variableId>
      <timeSeriesSet>
         <moduleInstanceId>AccumulationMaxTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>Q.m</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="hour" multiplier="1"/>
         <relativeViewPeriod unit="day" start="0" end="3"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </variable>
   <!-- transformations -->
   <transformation id="accumulation max test">
      <accumulation>
         <max>
            <inputVariable>
               <variableId>input</variableId>
            </inputVariable>
            <outputVariable>
               <variableId>output</variableId>
            </outputVariable>
         </max>
      </accumulation>
   </transformation>
</transformationModule>


Grid:

<?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>AccumulationMaxTestGrid</moduleInstanceId>
         <valueType>grid</valueType>
         <parameterId>H.m</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="day"/>
         <relativeViewPeriod unit="day" start="0" end="5"/>
         <readWriteMode>editing visible to all future task runs</readWriteMode>
      </timeSeriesSet>
   </variable>
   <variable>
      <variableId>output</variableId>
      <timeSeriesSet>
         <moduleInstanceId>AccumulationMaxTestGrid</moduleInstanceId>
         <valueType>grid</valueType>
         <parameterId>H.m</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="day"/>
         <relativeViewPeriod unit="day" start="0" end="5"/>
         <readWriteMode>editing visible to all future task runs</readWriteMode>
      </timeSeriesSet>
   </variable>
   <!-- transformations -->
   <transformation id="accumulation max test">
      <accumulation>
         <max>
            <inputVariable>
               <variableId>input</variableId>
            </inputVariable>
            <outputVariable>
               <variableId>output</variableId>
            </outputVariable>
         </max>
      </accumulation>
   </transformation>
</transformationModule>


  • No labels