This is an old revision of the document!


ALG004

Working … FIXME

Step Direction Expected Result Pass/Fail Criteria or Comment
001 Prepare test data in the test database.
Download Test Data and gunzip.
$ psql kvalobs
DELETE FROM data WHERE obstime>'2020-02-28' and obstime<'2020-04-01';
\copy data FROM './data-202003.dat' WITH DELIMITER AS '|'
NB specify the actual path to the test data above as required.
Check that the time interval contains no Qc2 processed data:
kvalobs=# select count(*) from data WHERE obstime>'2020-02-28' and obstime<'2020-04-01' and cfailed like '%Qc2%'; count=0
002 Download and gunzip qcd_u.cfg.gz to the Qc2Config directory and edit RunAtHour and RunAtMinute fields to the time that the test shall be run (e.g. a few minutes UTC in the future).
003 Check log files to verify that the algorithm runs as scheduled, e.g. $ tail -f /metno/kvalobs/var/log/Qc2.log
004 Check that Qc2 processed data now resides in the database:
kvalobs=# select count(*) from data WHERE obstime>'2020-02-28' and obstime<'2020-04-01' and cfailed like '%Qc2%'; count=0
005
006
007
008
009
010

Prerequisites

Set up the test data (these are prepatory notes for now for set up on pak)

Test Data comprising original data from 2008-03 with all the years set to 2020.

qcd_u.cfg.gz

  • $ psql kvalobs
  • psql⇒ DELETE FROM data WHERE obstime>'2020-02-28' and obstime<'2020-04-01';
  • psql⇒ \copy data FROM data-200803/data-202003.dat WITH DELIMITER AS '|';
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • kvalobs/kvoss/system/qc2/test/acceptance/alg004.1268870457.txt.gz
  • Last modified: 2022-05-31 09:23:18
  • (external edit)