...
Description
This transformation can be used to select to select an input time series from a set of input time series and copy that to the output time series. The selection will be done by using the attributeFunctionId.
...
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>60002_hevel<<variableId>inputA</variableId> <timeSeriesSet> <moduleInstanceId>SelectLocationFunctionTest</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.m</parameterId> <locationSetId>MergeTest1</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="day"/> <relativeViewPeriod unit="day" start="0" end="30"/> <readWriteMode>editing visible to all future task runs</readWriteMode> </timeSeriesSet> </variable> <variable> <variableId>60001_hevel<<variableId>inputB</variableId> <timeSeriesSet> <moduleInstanceId>SelectLocationFunctionTest</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.m</parameterId> <locationSetId>MergeTest2</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="day"/> <relativeViewPeriod unit="day" start="0" end="30"/> <readWriteMode>editing visible to all future task runs</readWriteMode> </timeSeriesSet> </variable> <transformation id="example"> <merge> <selectDataSource> <input> <variableId>60001_hevel<<variableId>inputA</variableId> </input> <input> <variableId>60002_hevel<<variableId>inputB</variableId> </input> <attributeFunctionId><at:var at:name="id" /><<attributeFunctionId>@attributeA@</attributeFunctionId> <output> <timeSeriesSet> <moduleInstanceId>SelectLocationFunctionTest</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q.m</parameterId> <locationSetId>MergeTest2</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="day"/> <relativeViewPeriod unit="day" start="0" end="30"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </output> </selectDataSource> </merge> </transformation> </transformationModule> |
...