Versions Compared

Key

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

...

The <lowerBoundAttributeId> specifies the trigger for the input time series in order to apply to to rule. This is a choice, it is also possible to configure

<inputLocationLowerBoundReferringAttributeId> which refers to separate attibute id's of the input locations, this way each input location can have a different lower bound value.

The <numberOfTimeSeriesWithinBoundariesAttributeId> specifies how many of the time series need to have their trigger crossed in order for the rule to apply.

...

Code Block
languagexml
titleExample multivariate threshold transformation
<?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>ForecastRain</variableId>
		<timeSeriesSet>
			<moduleInstanceId>ImportMultiVariateInput</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P.radar.forecast</parameterId>
			<locationSetId>MultiVarHyFSInput</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="day"/>
			<relativeViewPeriod unit="day" start="-12" end="0"/>
			<readWriteMode>editing visible to all future task runs</readWriteMode>
		</timeSeriesSet>
	</variable>
	<variable>
		<variableId>ObservedRain</variableId>
		<timeSeriesSet>
			<moduleInstanceId>ImportMultiVariateInput</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P.obs</parameterId>
			<locationSetId>MultiVarHyFSInput</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="day"/>
			<relativeViewPeriod unit="day" start="-12" end="0"/>
			<readWriteMode>editing visible to all future task runs</readWriteMode>
		</timeSeriesSet>
	</variable>
	<variable>
		<variableId>ObservedFlooding</variableId>
		<timeSeriesSet>
			<moduleInstanceId>ImportMultiVariateInput</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>H.obs</parameterId>
			<locationSetId>MultiVarHyFSInput</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="day"/>
			<relativeViewPeriod unit="day" start="-12" end="0"/>
			<readWriteMode>editing visible to all future task runs</readWriteMode>
		</timeSeriesSet>
	</variable>
	<variable>
		<variableId>output</variableId>
		<timeSeriesSet>
			<moduleInstanceId>MultiVariateThresholdsTransformation</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>H.sim</parameterId>
			<locationId>MultiVarHyFSOutput1</locationId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="day"/>
			<relativeViewPeriod unit="day" start="-12" end="0"/>
			<readWriteMode>editing visible to all future task runs</readWriteMode>
		</timeSeriesSet>
	</variable>
	<transformation id="MultiVariateHyFS">
		<multipleLocationAttributes>
			<multiVariateThresholdsHyFS><inputLocationSetsBasedMultivariateThresholds>
				<ruleAttributeId>ruleId</ruleAttributeId>
				<inputVariableAttributeId>variable</inputVariableAttributeId>
				<inputLocationSetIdAttributeId>inputLocationSetId</inputLocationSetIdAttributeId>
				<lowerBoundAttributeId>lowerBound</lowerBoundAttributeId>
				<numberOfTimeSeriesWithinBoundariesAttributeId>numberOfTimeSeries</numberOfTimeSeriesWithinBoundariesAttributeId>
				<ruleOutcomeAttributeId>ruleOutcome</ruleOutcomeAttributeId>
				<outputVariable>
					<variableId>output</variableId>
				</outputVariable>
			</multiVariateThresholdsHyFS>inputLocationSetsBasedMultivariateThresholds>
		</multipleLocationAttributes>
	</transformation>
</transformationModule>

...