Description
This transformation can be used to determine the threshold level for a certain location by using location attributes.
The location attributes define for each output location which time series should be used to determine the threshold level. Also the range for each threshold can be defined here.
An example is shown below.
id,variable,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
In the example above the thresholds are defined for output location H4301. The variable defines the id of a variable in the transformation module.
A single variable can define a set of time series with 1 parameter but 1 or more locations. To select a unique time series in this set the input location id is used.
The ruleId defines for which rule the range applies. The lowerBound and upperBound define the range in which the time series defined by the variable and inputLocationId should be so that the
rule applies. If all the conditions which are defined for a certain rule are met then the rule applies and the value which is defined in the ruleOutcome will be written to the output time series.
Note that is technically possible to define multiple ruleOutcomes. The transformation will however always use the first value which is defined in the csv-file.