Versions Compared

Key

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

...

The explanation above gave an good idea of the possibilities of the use of the validation rules.

In the examples above the inputMissingValuePercentage and the inputDoubtfulPercentage was configured hard-coded in the configuration file. However it is also possible to make a reference to an attribute of a location. To reference to an attribute the referenced attribute should be placed within @.

Code Block

<inputMissingPercentage><at:var at:name="MV" /></inputMissingPercentage>

For example to reference the attribute MV for the inputMissingValuePercentage the configuration should be like.

To explain the concept of the validation rules more the table below shows the input time series and the output time series of an aggregation accumulative tranformation which uses the validation rules which are shown above in the last eexample.

...

Time

Input value

input flag

Output value

output flag

custom flagsource

1-1-2012 00:15

 

 

 

 

 

1-1-2012 00:30

1

 

 

 

 

1-1-2012 00:45

1

 

 

 

 

1-1-2012 01:00

1

 

3

doubtful

-

1-1-2012 01:15

 

 

 

 

 

1-1-2012 01:30

1

 

 

 

 

1-1-2012 01:45

 

 

 

 

 

1-1-2012 02:00

1

 

NaN

-

-

1-1-2012 02:15

1

 

 

 

 

1-1-2012 02:30

1

doubtful

 

 

 

1-1-2012 02:45

1

 

 

 

 

1-1-2012 03:00

1

 

4

doubtful

D1

1-1-2012 03:15

1

 

 

 

 

1-1-2012 03:30

1

 

 

 

 

1-1-2012 03:45

1

 

 

 

 

1-1-2012 04:00

1

 

4

doubtful reliable

-  


The first output value is set to doubtful. Because in this case the total percentage of missing values is 25%. Which means that the following rule is applied.

...