Input
  • inputVariable
Output
  • outputVariable
Description

This transformation can be used to copy properties, flags, flagSourceColumns, flagSources, and comments from an input time series to an output timeseries.

It is also possible to skip copying one or more of the aforementioned items in the output. To do so, the following tags could be used in the configuration:

<skipComments>, <skipFlags>, <skipFlagSourceComments>, <skipProperties>, and <skipComments>


For instance, in the example below, comments and flags are not going to be copied since they will be skippsed via: 

			<skipComments>true</skipComments>
			<skipFlags>true</skipFlags>


Configuration example
<?xml version="1.0" encoding="UTF-8"?>
<transformationModule xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd" version="1.0">
   <variable>
      <variableId>input</variableId>
      <timeSeriesSet>
         <moduleInstanceId>MergeCopyTransformationTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>H.obs.proc</parameterId>
         <locationId>H564000</locationId>
         <locationId>H044229_b</locationId>
         <locationId>H044153</locationId>
         <locationId>H506012</locationId>
         <locationId>H036013</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="minute" multiplier="15"/>
         <relativeViewPeriod unit="day" start="-30" end="0"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </variable>
   <variable>
      <variableId>output</variableId>
      <timeSeriesSet>
         <moduleInstanceId>MergeCopyTransformationTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>Peak</parameterId>
         <locationId>H564000</locationId>
         <locationId>H044229_b</locationId>
         <locationId>H044153</locationId>
         <locationId>H506012</locationId>
         <locationId>H036013</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="nonequidistant"/>
         <relativeViewPeriod unit="day" start="-30" end="0"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </variable>
   <transformation id="typical profiel evap">
      <merge>
         <copy>
            <input>
               <variableId>input</variableId>
            </input>
			<skipComments>true</skipComments>
			<skipFlags>true</skipFlags>
            <output>
               <variableId>output</variableId>
            </output>
         </copy>
      </merge>
   </transformation>
</transformationModule>
  • No labels