Versions Compared

Key

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

...

Y = constant + factor1 * value1 + factor2 * value2 + factor3 +* value3;

the constant value and the factor will be provided by location attributes.

...

An example is given below.

Code Block
languagetext
id,x,y,constant,variableId,factor,inputLocationId
H4300,1,1,1,input1,2,H-2001
H4300,1,1,0,input2,3,H-2002

In the example above several attributes are defined for output location H4300.

...

This means that these attibutes can have 1 or more values. Note that multi-value location attributes should always be defined in seperate attribute file.

 

The attribute variable defines a avariable id in the tranformation module config file.

...

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by WL | Delft Hydraulics (WL | Delft Hydraulics) -->
<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>input1</variableId>
      <timeSeriesSet>
         <moduleInstanceId>InputVariableFunctionTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>Q.obs</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="day"/>
         <relativeViewPeriod unit="day" start="0" end="10"/>
         <readWriteMode>editing visible to all future task runs</readWriteMode>
      </timeSeriesSet>
   </variable>
   <variable>
      <variableId>input2</variableId>
      <timeSeriesSet>
         <moduleInstanceId>InputVariableFunctionTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>Q.obs</parameterId>
         <locationId>H-2002</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="day"/>
         <relativeViewPeriod unit="day" start="0" end="10"/>
         <readWriteMode>editing visible to all future task runs</readWriteMode>
      </timeSeriesSet>
   </variable>
   <variable>
      <variableId>output</variableId>
      <timeSeriesSet>
         <moduleInstanceId>InputVariableFunctionTest</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>Q.obs</parameterId>
         <locationId>H4300</locationId>
         <timeSeriesType>simulated forecasting</timeSeriesType>
         <timeStep unit="day"/>
         <relativeViewPeriod unit="day" start="0" end="10"/>
         <readWriteMode>editing visible to all future task runs</readWriteMode>
      </timeSeriesSet>
   </variable>
   <transformation id="test">
      <multipleLocationAttributes>
         <multipleIinearRegression>
            <constantAttributeId>constant</constantAttributeId>
            <variableAttributeId>variableName<<variableAttributeId>variableId</variableAttributeId>
            <inputLocationAttributeId>inputLocationId</inputLocationAttributeId>
            <factorAttributeId>factor</factorAttributeId>
            <outputVariable>
               <variableId>output</variableId>
            </outputVariable>
         </multipleIinearRegression>
      </multipleLocationAttributes>
   </transformation>
</transformationModule>

...