ALG004

Working ...

Acceptance Test for single point missing temperature values with TAN, TAX method

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%';	--	--
005	Delete any existing data output (rm ALG004.dat) and then EXTRACT THE DATA: psql> select * from data where obstime>'2020-02-28' and obstime<'2020-04-01' \g

| -- | -- |

006	Plot the data	--	--
./unit_T_plot.bash ALG004.dat	--	--
and inspect the produced image “*.jpg” file.	--	--
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 '|';