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-01-02 00:00:30] 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 ===== | ||
^Step ^Direction ^Expected Result ^Pass/Fail Criteria or Comment ^ | ^Step ^Direction ^Expected Result ^Pass/Fail Criteria or Comment ^ | ||
- | |001 | -- | -- | -- | | + | |001 | Clear all previous data: | -- | -- | |
- | |002 | -- | -- | -- | | + | | |$psql kvalobs | -- | -- | |
- | |003 | -- | -- | -- | | + | | |psql> DELETE FROM data WHERE obstime>' |
- | |004 | -- | -- | -- | | + | |002 |Load the test data, e.g.: | -- | -- | |
- | |005 | -- | -- | -- | | + | |
- | |006 | -- | -- | -- | | + | {{kvalobs: |
- | |007 | -- | -- | -- | | + | |
+ | | |psql> \COPY data FROM '/ | ||
+ | | |Check the copy is successful: | ||
+ | | | select count(*) from data WHERE obstime>' | ||
+ | |003 | Download the {{kvalobs: | ||
+ | |||
+ | |||
+ | Also edit the config file so that it contains the following text: | ||
+ | < | ||
+ | ... | ||
+ | # 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 the control: | ||
+ | | |select count(*) from data where obstime>' | ||
+ | |005 | Start the kvQc2 daemon and monitor until the algorithm run is complete. | ||
+ | | |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: | ||
+ | |||
+ | |||
+ | ===== Notes ===== | ||
**Prerequisites** | **Prerequisites** | ||
Line 63: | Line 94: | ||
</ | </ | ||
- | {{: | + | {{kvalobs: |
- | {{: | + | {{kvalobs: |
+ | NB | ||
+ | < | ||
+ | $ cksum 2027processedtestdata.dat.gz | ||
+ | 1877035137 1486134 2027processedtestdata.dat.gz | ||
+ | </ | ||
- | {{: | + | {{kvalobs: |
- | {{: | + | {{kvalobs: |
generator.pl | generator.pl | ||
Line 155: | 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 | | ||
+ | |||
+ | </ |