Page tree
Skip to end of metadata
Go to start of metadata

Description

This transformation determines if one of the configured conditions is valid, if this is the case the ruleIndex which identifies this conditions is written to the output Time Series. Condition operation options include: eq (equal), ge (great or equal than), gt (great than), le (less or equal than), lt (less than), ne (not equal). It is possible to create a single rule or a ruleGroup in ruleCriteria.

Input

  • criticalConditionLookUp

output

  • outputVariable

configuration example

<?xml version="1.0" encoding="UTF-8"?>
<transformationModule version="1.0" xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd">
	<!--Input time series-->
	<variable>
		<variableId>Q_in</variableId>
		<timeSeriesSet>
			<moduleInstanceId>ImportDatabase</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.obs</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<relativeViewPeriod unit="day" start="-16" end="0" startOverrulable="true"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<!--Output time series-->
	<variable>
		<variableId>Q_out</variableId>
		<timeSeriesSet>
			<moduleInstanceId>HuangChuan_Update_Pre</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.obs</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<!--<timeStep unit="hour" multiplier="6"/>-->
			<relativeViewPeriod unit="day" start="-16" end="0" startOverrulable="true"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<!--Transformations-->
	<transformation id="conditional">
		<conditional>
			<multiple>
				<criticalConditionLookup>
					<criticalCondition rule="INFO" ruleIndex="0">
						<ruleCriteria>
							<rule variable="Q_in" value="1000" operator="lt"/>
						</ruleCriteria>
					</criticalCondition>
					<criticalCondition rule="WARN" ruleIndex="-1">
						<ruleCriteria>
							<rule variable="Q_in" value="1000" operator="ge"/>
						</ruleCriteria>
					</criticalCondition>
				</criticalConditionLookup>
				<outputVariable>
					<variableId>Q_out</variableId>
				</outputVariable>
			</multiple>
		</conditional>
	</transformation>
</transformationModule>

  • No labels