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-04-04 13:10:50] paule |
kvalobs:kvoss:system:qc2:test:acceptance:alg001 [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 8: | 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 | | -- | -- | | + | |
+ | 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 {{: | + | |006 | Download the following processing and plotting scripts {{kvalobs: |
- | |007 | ./ | + | |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: |
Line 73: | Line 94: | ||
</ | </ | ||
- | {{: | + | {{kvalobs: |
- | {{: | + | {{kvalobs: |
+ | NB | ||
+ | < | ||
+ | $ cksum 2027processedtestdata.dat.gz | ||
+ | 1877035137 1486134 2027processedtestdata.dat.gz | ||
+ | </ | ||
- | {{: | + | {{kvalobs: |
- | {{: | + | {{kvalobs: |
generator.pl | generator.pl | ||
Line 165: | Line 191: | ||
</ | </ | ||
- | {{: | + | {{kvalobs: |
- | ====== | + | ====== |
- | Add single use case examples for using generator.pl | + | It is possible to use the script generator.pl modify some real data and substitute missing values and an accummulated value, while also storing the original values. (NB copy and paste generator.pl from the listing above). |
- | It is possible to use the script generator.pl modify some real data and substitute missing values and an accummulated value, while also storing the original values. | + | |
^Step ^Direction ^Expected Result ^Pass/Fail Criteria or Comment ^ | ^Step ^Direction ^Expected Result ^Pass/Fail Criteria or Comment ^ | ||
- | |001 | Clear all previous | + | |I |Select candidate |
- | | |$psql kvalobs | + | |II |Run " |
- | | |psql> DELETE FROM data WHERE obstime>' | + | | | ./ |
+ | | |Repeat as many times as required to build test data. | -- | -- | | ||
+ | |III |Run the algorithm | ||
+ | |||
+ | |||
+ | |||
+ | ===== For example: ===== | ||
+ | |||
+ | |||
+ | **Before** | ||
+ | |||
+ | <code> | ||
+ | 58390 | 2032-03-02 06:00:00 | 0.3 | | ||
+ | 58390 | 2032-03-03 06: | ||
+ | 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 | | ||
+ | |||
+ | </ |