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:test:acceptance:alg001 [2010-03-21 21:14:50] paule |
kvalobs:kvoss:system:qc2:test:acceptance:alg001 [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ALG001 ====== | ====== ALG001 ====== | ||
- | Working ... FIXME | ||
===== Acceptance Test for Redistribution of 24 hour accumulated precipitation ===== | ===== Acceptance Test for Redistribution of 24 hour accumulated precipitation ===== | ||
Line 9: | Line 8: | ||
| |$psql kvalobs | -- | -- | | | |$psql kvalobs | -- | -- | | ||
| |psql> DELETE FROM data WHERE obstime>' | | |psql> DELETE FROM data WHERE obstime>' | ||
- | |002 |Load the test data: | -- | -- | | + | |002 |Load the test data, e.g.: | -- | -- | |
+ | |||
+ | {{kvalobs: | ||
| |psql> \COPY data FROM '/ | | |psql> \COPY data FROM '/ | ||
| |Check the copy is successful: | -- | -- | | | |Check the copy is successful: | -- | -- | | ||
| | select count(*) from data WHERE obstime>' | | | select count(*) from data WHERE obstime>' | ||
- | |003 | Download the {{: | + | |003 | Download the {{kvalobs: |
- | |004 | NB. If kvQc2 is not running | + | |
- | |005 | -- | -- | -- | | + | |
- | |006 | -- | -- | -- | | + | Also edit the config file so that it contains the following text: |
- | |007 | -- | -- | -- | | + | < |
+ | ... | ||
+ | # Flags to set on successful completion | ||
+ | S_fd=7 | ||
+ | change_fmis=3-> | ||
+ | change_fmis=0-> | ||
+ | |||
+ | ... | ||
+ | </ | ||
+ | (NB this is a recent update) | ||
+ | |||
+ | |004 |Look for results prior to running | ||
+ | | |select count(*) from data where obstime>' | ||
+ | |005 | Start the kvQc2 daemon | ||
+ | | |select count(*) from data where obstime>' | ||
+ | < | ||
+ | |006 | Download the following processing and plotting scripts {{kvalobs: | ||
+ | |007 | ./ | ||
+ | | | If files are downloaded from dokit: Please note dokit changes uploaded files to lower case ... an R script, example.R, becomes example.r Also need to "chmod +x" for scripts downloaded from dokit. | ||
+ | | | On dev-vm116, R is installed but " | ||
|008 | -- | -- | -- | | |008 | -- | -- | -- | | ||
|009 | -- | -- | -- | | |009 | -- | -- | -- | | ||
|010 | -- | -- | -- | | |010 | -- | -- | -- | | ||
- | Alternative configuration file for performing triangulation interpolation: | + | Alternative configuration file for performing triangulation interpolation: |
===== Notes ===== | ===== Notes ===== | ||
Line 72: | Line 94: | ||
</ | </ | ||
- | {{: | + | {{kvalobs: |
- | {{: | + | {{kvalobs: |
+ | NB | ||
+ | < | ||
+ | $ cksum 2027processedtestdata.dat.gz | ||
+ | 1877035137 1486134 2027processedtestdata.dat.gz | ||
+ | </ | ||
- | {{: | + | {{kvalobs: |
- | {{: | + | {{kvalobs: |
generator.pl | generator.pl | ||
Line 164: | Line 191: | ||
</ | </ | ||
- | {{: | + | {{kvalobs: |
- | ====== | + | ====== |
- | Add single | + | It is possible to use the script |
+ | ^Step ^Direction ^Expected Result ^Pass/Fail Criteria or Comment ^ | ||
+ | |I |Select candidate data. One needs a start time and a number of days interval. | -- | -- | | ||
+ | |II |Run " | ||
+ | | | | ||
+ | | |Repeat as many times as required to build test data. | -- | -- | | ||
+ | |III |Run the algorithm and analyse the results. | -- | -- | | ||
+ | |||
+ | |||
+ | ===== For example: ===== | ||
+ | |||
+ | |||
+ | **Before** | ||
+ | |||
+ | < | ||
+ | 58390 | 2032-03-02 06:00:00 | 0.3 | 110 | 2032-03-02 06:25:19 | 302 | 0 | 0 | 0.3 | 1110000000001001 | 3000000000000070 | | ||
+ | 58390 | 2032-03-03 06:00:00 | 4.5 | 110 | 2032-03-03 06:10:32 | 302 | 0 | 0 | 4.5 | 1110000000001001 | 3000000000000070 | | ||
+ | 58390 | 2032-03-04 06:00:00 | 2.5 | 110 | 2032-03-04 06:10:54 | 302 | 0 | 0 | 2.5 | 1110000000001000 | 7000000000000000 | | ||
+ | 58390 | 2032-03-05 06:00:00 | 8.5 | 110 | 2032-03-05 06:25:24 | 302 | 0 | 0 | 8.5 | 1110000000001000 | 7000000000000000 | | ||
+ | 58390 | 2032-03-06 06:00:00 | 7 | 110 | 2032-03-06 06:25:24 | 302 | 0 | 0 | 7 | 1110000000001000 | 7000000000000000 | | ||
+ | 58390 | 2032-03-07 06:00:00 | 0.2 | 110 | 2032-03-07 06:25:21 | 302 | 0 | 0 | 0.2 | 1110000000001000 | 7000000000000000 | | ||
+ | 58390 | 2032-03-08 06:00:00 | -1 | 110 | 2032-03-08 06:25:17 | 302 | 0 | 0 | -1 | 1110000000001000 | 7000000000000000 | | ||
+ | 58390 | 2032-03-09 06:00:00 | 2.4 | 110 | 2032-03-09 06:06:31 | 302 | 0 | 0 | 2.4 | 1110000000001000 | 7000000000000000 | | ||
+ | 58390 | 2032-03-10 06:00:00 | 2.2 | 110 | 2032-03-10 06:25:20 | 302 | 0 | 0 | 2.2 | 1110000000001001 | 3000000000000070 | | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Command** | ||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | |||
+ | **After** | ||
+ | < | ||
+ | 58390 | 2032-03-02 06:00:00 | 0.3 | 110 | 2032-03-02 06:25:19 | 302 | 0 | 0 | 0.3 | 1110000000001001 | 3000000000000070 | | ||
+ | 58390 | 2032-03-03 06:00:00 | | ||
+ | 58390 | 2032-03-04 06:00:00 | | ||
+ | 58390 | 2032-03-05 06:00:00 | | ||
+ | 58390 | 2032-03-06 06:00:00 | | ||
+ | 58390 | 2032-03-07 06:00:00 | | ||
+ | 58390 | 2032-03-08 06:00:00 | | ||
+ | 58390 | 2032-03-09 06:00:00 | 25.1 | 110 | 2032-03-09 06:06:31 | 302 | 0 | 0 | 2.4 | 9999999999992990 | 7000000000000000 | TEST-DATA-RA_RR24 original=2.4 | ||
+ | 58390 | 2032-03-10 06:00:00 | 2.2 | 110 | 2032-03-10 06:25:20 | 302 | 0 | 0 | 2.2 | 1110000000001001 | 3000000000000070 | | ||
+ | |||
+ | </ |