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:alg004 [2010-06-15 23:11:21] paule |
kvalobs:kvoss:system:qc2:test:acceptance:alg004 [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 5: | Line 5: | ||
^Step ^Direction ^Expected Result ^Pass/Fail Criteria or Comment ^ | ^Step ^Direction ^Expected Result ^Pass/Fail Criteria or Comment ^ | ||
|001 | Prepare test data in the test database. | -- | -- | | |001 | Prepare test data in the test database. | -- | -- | | ||
- | | | Download {{: | + | | | Download {{kvalobs: |
| | $ psql kvalobs | -- | -- | | | | $ psql kvalobs | -- | -- | | ||
| | < | | | < | ||
Line 13: | Line 13: | ||
| | Check that the time interval contains no Qc2 processed data: | -- | -- | | | | Check that the time interval contains no Qc2 processed data: | -- | -- | | ||
| | kvalobs=# select count(*) from data WHERE obstime BETWEEN ' | | | kvalobs=# select count(*) from data WHERE obstime BETWEEN ' | ||
- | |002 |Download and gunzip {{: | + | |002 |Download and gunzip {{kvalobs: |
| |The configuration by default has W_fhqc=0 and Wbool=true. The algorithm will only work on data that ha not been controlled by HQC | -- | -- | | | |The configuration by default has W_fhqc=0 and Wbool=true. The algorithm will only work on data that ha not been controlled by HQC | -- | -- | | ||
Line 30: | Line 30: | ||
|004 | Check that Qc2 processed data now resides in the database: | -- | -- | | |004 | Check that Qc2 processed data now resides in the database: | -- | -- | | ||
| | kvalobs=# select count(*) from data WHERE obstime BETWEEN ' | | | kvalobs=# select count(*) from data WHERE obstime BETWEEN ' | ||
- | |005 | Delete any existing data output (rm ALG004-Step5.dat) and then EXTRACT THE DATA: |{{: | + | |005 | Delete any existing data output (rm ALG004-Step5.dat) and then EXTRACT THE DATA: |{{kvalobs: |
< | < | ||
</ | </ | ||
- | |006 | Plot the data. Download and use the two scripts | + | |006 | Plot the data. Download and use the two scripts |
| |Make the bash file executable: | -- | -- | | | |Make the bash file executable: | -- | -- | | ||
| | chmod u+x unit_t_plot.bash| -- | -- | | | | chmod u+x unit_t_plot.bash| -- | -- | | ||
| |Run the script | -- | -- | | | |Run the script | -- | -- | | ||
- | | | | + | | | |
| | and inspect the produced image ALG004-Step5.dat.jpg file. | -- |-- | | | | and inspect the produced image ALG004-Step5.dat.jpg file. | -- |-- | | ||
+ | |||
+ | **Alternative to step 006 for use on dev-vm101** | ||
+ | |||
+ | These files are already installed under / | ||
+ | |||
+ | As user kvalobs: | ||
+ | < | ||
+ | $ cd | ||
+ | $ ./ | ||
+ | |||
+ | The data file ALG004-Step5.dat.XY.dat has been created ... | ||
+ | |||
+ | Now run the following commands in R: | ||
+ | -------------------------------------- | ||
+ | |||
+ | FileName=" | ||
+ | UTD <- read.table(FileName, | ||
+ | pdf() | ||
+ | plot(UTD[, | ||
+ | lines(c(-20, | ||
+ | lines(c(-30, | ||
+ | lines(c(0, | ||
+ | lines(c(-30, | ||
+ | dev.off() | ||
+ | |||
+ | -------------------------------------- | ||
+ | </ | ||
+ | i.e. ... enter R: | ||
+ | < | ||
+ | $ R | ||
+ | ... | ||
+ | > FileName=" | ||
+ | > UTD <- read.table(FileName, | ||
+ | > pdf() | ||
+ | > plot(UTD[, | ||
+ | > lines(c(-20, | ||
+ | > lines(c(-30, | ||
+ | > lines(c(0, | ||
+ | > lines(c(-30, | ||
+ | > dev.off() | ||
+ | > | ||
+ | > quit() | ||
+ | </ | ||
+ | |||
+ | The above creates the file Rplots.pdf: | ||
+ | < | ||
+ | $ xpdf Rplots.pdf | ||
+ | </ | ||
+ | **NB** if you have logged in using ssh -X kvalobs@dev-vm101 then the above will probably work! | ||
+ | |||
+ | |||
|007 | Edit the configuration file and set Wbool=false. Rerun the algorithm. The algorithm will reprocess the data flagged as controlled by HQC already. | -- | -- | | |007 | Edit the configuration file and set Wbool=false. Rerun the algorithm. The algorithm will reprocess the data flagged as controlled by HQC already. | -- | -- | | ||
| | kvalobs=# select count(*) from data WHERE obstime BETWEEN ' | | | kvalobs=# select count(*) from data WHERE obstime BETWEEN ' | ||
- | | |Capture the results. (rm ALG004-Step7.dat any previous test results) |{{: | + | | |Capture the results. (rm ALG004-Step7.dat any previous test results) |{{kvalobs: |
< | < | ||
</ | </ | ||
- | |008 | Plot results as in step 006 above. | {{: | + | |008 | Plot results as in step 006 above. | {{kvalobs: |
**Prerequisites** | **Prerequisites** | ||
Line 52: | Line 103: | ||
Set up the test data (these are prepatory notes for now for set up on pak) | Set up the test data (these are prepatory notes for now for set up on pak) | ||
- | {{: | + | {{kvalobs: |
- | {{: | + | {{kvalobs: |
Setting-up or refreshing the database. (some database management may be required to stop page errors and the like ????, vacuum cleaning etc ???) | Setting-up or refreshing the database. (some database management may be required to stop page errors and the like ????, vacuum cleaning etc ???) | ||
Line 62: | Line 113: | ||
* psql=> COPY data FROM ./ | * psql=> COPY data FROM ./ | ||
- | Script for plotting the test results. See the Step # above: {{: | + | Script for plotting the test results. See the Step # above: {{kvalobs: |
- | ... and not to forget the corresponding R-script called by the shell script: {{: | + | ... and not to forget the corresponding R-script called by the shell script: {{kvalobs: |