Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

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>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>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>inputA</variableId>
				</input>
				<input>
					<variableId>inputB</variableId>
				</input>
				<attributeFunctionId><at:var at:name="attributeA" /><<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>

...