Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
kvalobs:kvoss:system:qc2:user:version:kvqc2-1.0.5 [2010-09-05 09:55:56] paule |
kvalobs:kvoss:system:qc2:user:version:kvqc2-1.0.5 [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== kvqc2 Version: 1.0.5 ====== | ====== kvqc2 Version: 1.0.5 ====== | ||
- | [[https:// | + | [[https:// |
**Algorithms in this release:** | **Algorithms in this release:** | ||
Line 7: | Line 7: | ||
^ AlgoCode ^Name ^Description | ^ AlgoCode ^Name ^Description | ||
| 10 | SingleLinear | Replaces a single missing value with a linear interpolated value. If a corresponding max or min paramids are also specified then checks that the correction lies within the available max ... min range, if the interpolated values falls outside this range then the algorithm sets the corrected value to the nearest of max or min. Run for any paramid and optional max, min specified in the configuration file. [[https:// | | 10 | SingleLinear | Replaces a single missing value with a linear interpolated value. If a corresponding max or min paramids are also specified then checks that the correction lies within the available max ... min range, if the interpolated values falls outside this range then the algorithm sets the corrected value to the nearest of max or min. Run for any paramid and optional max, min specified in the configuration file. [[https:// | ||
- | | 7 | FlagTester |[[https:// | + | | 7 | FlagTester |[[https:// |
**Example Configuration Files** | **Example Configuration Files** | ||
+ | |||
+ | ^SingleLinear ^ | ||
+ | |||
+ | < | ||
+ | # AlgCode 10 corresponds to https:// | ||
+ | # Performs simple linear interpolation for a single point replacement. | ||
+ | # If the result is outside an available max min range, the nearest of the | ||
+ | # max or min values are used. | ||
+ | AlgoCode=10 | ||
+ | # Time to run the algorithm | ||
+ | RunAtHour=16 | ||
+ | RunAtMinute=47 | ||
+ | # Check data from the last three days | ||
+ | Last_NDays=40 | ||
+ | |||
+ | #[Specific Data Type and Paramters ids etc.] | ||
+ | ParamId=211 | ||
+ | MaxParamId=215 | ||
+ | MinParamId=213 | ||
+ | # Only write back the result if not previously controlled | ||
+ | W_fhqc=0 | ||
+ | |||
+ | #Flag to set if value is corrected | ||
+ | S_ftime=1 | ||
+ | change_fmis=3-> | ||
+ | change_fmis=0-> | ||
+ | change_fmis=2-> | ||
+ | |||
+ | #If there is already a 1 in place then we do not want run the algorithm again! | ||
+ | Not_ftime=1 | ||
+ | Not_fnum=6 | ||
+ | U_2=0 | ||
+ | </ | ||
+ | |||
+ | ^FlagTester ^ | ||
+ | |||
+ | This is a small utility to help check the behaviour of flag settings with the introduction of Qc2. Procedure: | ||
+ | |||
+ | - Provide a set of input flags in a text file as " | ||
+ | - Add to the configuration file the desired conntrolinfo changes to apply. | ||
+ | - The algorithm changes the controlinfo and then obtains an update to the useinfo from kvUseInfo:: | ||
+ | - The results are written to a text file for later inspection. | ||
+ | |||
+ | **Example configuration file with further comments inline ...** | ||
+ | < | ||
+ | #[Flag Analysis Utility] | ||
+ | AlgoCode=7 | ||
+ | RunAtHour=22 | ||
+ | RunAtMinute=33 | ||
+ | # File containing test flags, the format of the file is as follows | ||
+ | # controlinfo useinfo | ||
+ | # | ||
+ | # If no file is specified the algorithm does not run. | ||
+ | # | ||
+ | # e.g. | ||
+ | # 0000601000000000 9894700000000000 | ||
+ | # 0000002000000000 7039900000000000 | ||
+ | # 0000002000000000 9039900000000000 | ||
+ | # 0000602000000000 7033700000000000 | ||
+ | # 0000003000000000 9899900000000000 | ||
+ | # | ||
+ | FlagsIn="/ | ||
+ | #Flags to change in the controlinfo | ||
+ | S_ftime=1 | ||
+ | change_fmis=3-> | ||
+ | change_fmis=0-> | ||
+ | change_fmis=2-> | ||
+ | # File where the resultant flags are written | ||
+ | FlagsOut="/ | ||
+ | # | ||
+ | # If no file is specified the results are written to "/ | ||
+ | # | ||
+ | </ | ||
Line 15: | Line 88: | ||
No algorithms in this release perform any spatial interpolation hence the InterpCode configuration parameter, if set, has no effect. | No algorithms in this release perform any spatial interpolation hence the InterpCode configuration parameter, if set, has no effect. | ||
+ | |||
+ | ====== Test Results ====== | ||
+ | |||
+ | |||
+ | |||
+ | **FlagTester: | ||
+ | |||
+ | ^Flags before ^^Flags After ^^ | ||
+ | |0000601000000000 | 9894700000000000 | 0000601100000000 | 5894700000000001 | | ||
+ | |0000002000000000 | 7039900000000000 | 0000004100000000 | 6093900000000000 | | ||
+ | |0000002000000000 | 9039900000000000 | 0000004100000000 | 6093900000000000 | | ||
+ | |0000602000000000 | 7033700000000000 | 0000604100000000 | 5033700000000001 | | ||
+ | |0000003000000000 | 9899900000000000 | 0000001100000000 | 6894900000000000 | | ||
+ | |||
+ | |||
+ | **SingleLinear ... Standard use case on dev-vm101: | ||
+ | |||
+ | < | ||
+ | kvalobs=# select * from data_history where stationid=99737 and paramid=211 and obstime=' | ||
+ | | ||
+ | ----------+-----------+---------------------+----------+---------+---------------------+--------+--------+-------+-----------+------------------+------------------+----------+---------------------------- | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | (5 rows) | ||
+ | </ | ||
+ | |||
+ | Something odd above needs investigating ... **NOW INVESTIGATED** |