...
Code Block | ||
---|---|---|
| ||
id,variable,inputLocationId,ruleId,lowerBound,upperBound,ruleOutcome H4301,input1,H-2001,ruleA,1,10,1 H4301,input2,H-2002,ruleA,2,4,1 H4301,input1,H-2001,ruleB,10,20,2 H4301,input2,H-2002,ruleB,4,10,2 H4301,input1,H-2001,ruleC,20,30,3 |
Code Block | ||
---|---|---|
| ||
<?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>H4301</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>
<multipleVariateThresholds>
<ruleId>ruleId</ruleId>
<variableAttributeId>variable</variableAttributeId>
<inputLocationAttributeId>inputLocationId</inputLocationAttributeId>
<lowerBoundAttributeId>lowerBound</lowerBoundAttributeId>
<upperBoundAttributeId>upperBound</upperBoundAttributeId>
<ruleOutcomeAttributeId>ruleOutcome</ruleOutcomeAttributeId>
<outputVariable>
<variableId>output</variableId>
</outputVariable>
</multipleVariateThresholds>
</multipleLocationAttributes>
</transformation>
</transformationModule> |
In the example above the thresholds are defined for output location H4301. The variable defines the id of a variable in the transformation module.
...
Note that is technically possible to define multiple ruleOutcomes. The transformation will however always use the first value which is defined in the csv-file.