QC2-OPE-CFG

1) When $KVALOBS is removed the paths in this page shall be updated.

This is a set of tests to check the operation of the configuration files and become familiar with setting different options.

Prerequisite

Stop kvalobs with bin/kvstop (rationale: run kvQc2 from the terminal to immediately analyse output)

NOTES

For dev-vm116 local installation $PREFIX=/metno/kvalobs

For debian package it is probably: $PREFIX=

Step	Direction	Expected Result	Pass/Fail Criteria or Comment
001	Locate the active Qc2Config directory. Make a copy of the existing Qc2Config directory	--	--
$ cd $PREFIX/etc/kvalobs	--	--
$ tar cvf Qc2Config.tar Qc2Config/	--	--
Remove the Qc2Config directory.	--	--
$ rm -r Qc2Config	--	--
002	Run kvQc2 as follows:	--	--
$ bin/kvQc2	Does not exist: $PREFIX/etc/kvalobs/Qc2Config/	--
Note: open a new shell to perform the following tasks and monitor the results in the bin/kvQc2 program output, i.e. set up two shell windows side by side, one with kvQc2 running, the other with the modifications to the Qc2Config directory. The program will attempt to scan for a configuration file every 59s and a response is detected as described below.	--	--
003	$ mkdir Qc2Config	Scanning For Files ;$PREFIX/etc/kvalobs/Qc2Config/	--
Note kvQc2D scans the Qc2Config directory every ~60s, therefore wait at least this time between steps to check for results
004	$ touch Qc2Config/example.dat	- no response -	--
005	$ touch Qc2Config/example.cfg	--	--
Configuration File Found: $PREFIX/etc/kvalobs/Qc2Config/example.cfg; 2010-03-24 23:35:31: 2010-03-24 23:00:00 -> 2010-03-24 23:00:00 $PREFIX/etc/kvalobs/Qc2Config/example.cfg
The times are default times generated if no times are set specifying the start and stop of the algorithm run.
006	View https://svn.met.no/kvoss/kvalobs/trunk/src/kvQc2/Reference/ProcessUnit.cfg in a browser and review contents.	Note the paramter Last_NDays=3 is set.	--
Copy the file to the Qc2Config directory,e.g.:
$ wget https://svn.met.no/kvoss/kvalobs/trunk/src/kvQc2/Reference/ProcessUnit.cfg	Note the start and end time now covers the last 3 days.
2010-03-24 23:54:34: 2010-03-21 23:00:00 -> 2010-03-24 23:00:00 $PREFIX/etc/kvalobs/Qc2Config/ProcessUnit.cfg
007	Edit the ProcessUnit.cfg file by replacing Last_NDays=3 (a # may be used to comment out) with:	--	--

#Last_NDays=3
#[Time Range]
Start_YYYY=2007
Start_MM=5
Start_DD=31
Start_hh=6
Start_mm=0
Start_ss=0
End_YYYY=2007
End_MM=12
End_DD=31
End_hh=6
End_mm=0
End_ss=0

007	Observed result:	--	--
2010-03-25 00:00:28: 2007-05-31 06:00:00 -> 2007-12-31 06:00:00 $PREFIX/etc/kvalobs/Qc2Config/ProcessUnit.cfg

The full list of available configuration file options is found here, experiment!

008	Remove Qc2Config directory and replace original:	--	--
$ rm -r Qc2Config
$ tar xvf Qc2Config.tar