Versions Compared

Key

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

...

The location attributes define for each output location which time series should be used to determine the threshold level. Also the range lower bounds for each threshold can be defined here.

...

Below an example is shown of all the three components. 


This transformation differs from Multi variate threshold transformation by using a location set for each line in the csv where the rules are defined.

This way

- each line applies to multiple locations at once

- a minimum number of time series that need to apply to the rule can be configured 

- a specific attribute id for an attribute of the input locations containing the lower bound of the threshold can be configured

 

Below an example of csv-file which defines the values of the attributes

Code Block
languagexml
id,inputVariable,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;variable;inputLocationSetId;ruleId;numberOfTimeSeries;lowerBoundInputAttributeId;lowerBound;ruleOutcome
MultiVarHyFSOutput1;ForecastRain;MultiVarHyFSInput;rule0;1;thv0;-999;-1
MultiVarHyFSOutput1;ForecastRain;MultiVarHyFSInput;rule1;2;thv1;10;1
MultiVarHyFSOutput1;ObservedRain;MultiVarHyFSInput;rule2;2;thv2;10;2
MultiVarHyFSOutput1;ObservedFlooding;MultiVarHyFSInput;rule3;2;thv3;10;3
MultiVarHyFSOutput1;ForecastRain;MultiVarHyFSInput;rule4;2;thv4;20;4
MultiVarHyFSOutput1;ForecastRain;MultiVarHyFSInput;rule5;2;thv5a;20;5
MultiVarHyFSOutput1;ObservedRain;MultiVarHyFSInput;rule5;2;thv5b;10;5
MultiVarHyFSOutput1;ForecastRain;MultiVarHyFSInput;rule6;2;thv6a;20;6
MultiVarHyFSOutput1;ObservedFlooding;MultiVarHyFSInput;rule6;2;thv6b;10;6
MultiVarHyFSOutput1;ObservedRain;MultiVarHyFSInput;rule7;2;thv7;20;7
MultiVarHyFSOutput1;ObservedRain;MultiVarHyFSInput;rule8;2;thv8a;20;8
MultiVarHyFSOutput1;ObservedFlooding;MultiVarHyFSInput;rule8;2;thv8b;10;8
MultiVarHyFSOutput1;ObservedFlooding;MultiVarHyFSInput;rule9;2;thv9;20;9

 

Below an example of a module config file which defines the transformation

...

Below an example of the definition of a locationSet with attributes.

Code Block
languagexml

	<locationSet id="exampleMultiVariateThresholdsHyFS">
   <csvFile>
      <file>multi_variate_thresholds		<csvFile>
			<file>MultiVariateThresholdsHyFS.csv</file>
      			<id>%id%</id>
      			<x>%x%</x>
      			<y>%y%</y>
			<attribute id="thv0">
				<number>%thv0%</number>
			</attribute>
			<attribute id="thv1">
				<number>%thv1%</number>
			</attribute>
			<attribute id="thv2">
				<number>%thv2%</number>
			</attribute>
			<attribute id="thv3">
				<number>%thv3%</number>
			</attribute>
			<attribute  <attributeFile>
         <csvFile>multi_variate_thresholds_attribute.csv</csvFile>
         <id>%id%</id>
         <attribute id="inputLocationId">
            <text>%inputLocationId%</text>
         </attribute>
         <attribute id="inputVariable">
            <text>%inputVariable%</text>
         </attribute>
         id="thv4">
				<number>%thv4%</number>
			</attribute>
			<attribute id="thv5a">
				<number>%thv5a%</number>
			</attribute>
			<attribute id="thv5b">
				<number>%thv5b%</number>
			</attribute>
			<attribute id="thv6a">
				<number>%thv6a%</number>
			</attribute>
			<attribute id="thv6b">
				<number>%thv6b%</number>
			</attribute>
			<attribute id="thv7">
				<number>%thv7%</number>
			</attribute>
			<attribute id="thv8a">
				<number>%thv8a%</number>
			</attribute>
			<attribute id="thv8b">
				<number>%thv8b%</number>
			</attribute>
			<attribute id="thv9">
				<number>%thv9%</number>
			</attribute>
			<attributeFile>
				<csvFile>MultiVariateThresholdsAttributesHyFS.csv</csvFile>
				<id>%id%</id>
				<attribute id="inputLocationSetId">
					<text>%inputLocationSetId%</text>
				</attribute>
				<attribute id="variable">
					<text>%variable%</text>
				</attribute>
				<attribute id="ruleId">
            					<text>%ruleId%</text>
				</attribute>
         </attribute>
         				<attribute id="lowerBoundInputAttributeId">
					<text>%lowerBoundInputAttributeId%</text>
				</attribute>
				<attribute id="lowerBound">
            					<number>%lowerBound%</number>
         				</attribute>
         				<attribute id="upperBoundruleOutcome">
            <number>%upperBound%</number>
         </attribute>
         					<number>%ruleOutcome%</number>
				</attribute>
				<attribute id="ruleOutcomenumberOfTimeSeries">
            <number>%ruleOutcome%</number>
         					<number>%numberOfTimeSeries%</number>
				</attribute>
      			</attributeFile>
   		</csvFile>
	</locationSet>

 

In the example above the thresholds are defined for output location H4301. The variable defines the id of a variable in the transformation module.

...