Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This transformation can be used to copy the value of a time series with a single time step to every time step in the view period of the output. Note that the timeseries need needs to have one value when using read complete forecast. It does not work when use a partly populated series with start=0 and end=0.

Configuration

A basic configuration of the function is described below.

Code Block
<?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>SampleSingleTimeStepTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>H.obs</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="nonequidistant"/>
         <readWriteMode>read complete forecast</readWriteMode>
      </timeSeriesSet>
   </variable>
   <variable>
      <variableId>output</variableId>
      <timeSeriesSet>
         <moduleInstanceId>SampleSingleTimeStepTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>H.obs.upstream</parameterId>
         <locationId>H-2010</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="hour" multiplier="6"/>
         <relativeViewPeriod unit="hour" start="0" end="24"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </variable>
   <transformation id="example">
<sample>
   <sampleSingleTimeStep>
      <inputVariable>
         <variableId>input</variableId>
      </inputVariable>
      <outputVariable>
         <variableId>output</variableId>
      </outputVariable>
   </sampleSingleTimeStep>
</sample>
   </transformation>
</transformationModule>