Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kvalobs:kvoss:system:qc2:requirements:algorithms:plumatic [2011-07-08 07:28:06]
paule
kvalobs:kvoss:system:qc2:requirements:algorithms:plumatic [2022-05-31 09:29:32] (current)
Line 1: Line 1:
-====== Plumatic ======+====== QC2h-1: Plumatic Controls ======
  
-   * {{:kvoss:system:qc2:requirements:algorithms:qc2-plu-timeseries-v0.9.pdf|Specification}}+   * {{kvalobs:kvoss:system:qc2:requirements:algorithms:qc2-plu-timeseries-v0.9.pdf|Specification}} 
 +   * [[kvalobs:kvoss:system:qc2:requirements:algorithms:QC2h1|QC2h1 spesifikasjon]] 
 + 
 +See also the [[https://github.com/metno/kvqc2d/blob/master/doc/Plumatic.md|Plumatic documentation]] in the source code repository. 
 +==== Procedure ==== 
 + 
 +The algorithm first checks prioritet 2, 3, and 4 from the [[kvalobs:kvoss:system:qc2:requirements:algorithms:qc2h1|specification]] and applies the correpsonding flag modifications. 
 +After that, the sliding aggregation check is performed, excluding any periods with data matching **discarded_*flags**.
    
-====== Prioritet 1: Grenseverdikontroll ====== +==== Configuration ==== 
-  +Beyond the standard configuration options detailed in the [[kvalobs:kvoss:system:qc2:user|user guide]], 
-Example data:+the following options are available for Plumatic.
  
-(Just to become familiar with the characteristics)+^ Option ^ Default ^ Description ^ 
 +| highsingle_flagchange | fs=8,fmis=2 | flags to set if a "high single" is detected (prioritet 2 in the [[kvalobs:kvoss:system:qc2:requirements:algorithms:qc2h1|specification]]) | 
 +| highstart_flagchange  | fs=8,fmis=2 | flags to set if a "high start" is detected (prioritet 3 in the [[kvalobs:kvoss:system:qc2:requirements:algorithms:qc2h1|specification]]) | 
 +| interruptedrain_flagchange | fs=8,fmis=2 | flags to set if a "rain interruption" is detected (prioritet 4 in the [[kvalobs:kvoss:system:qc2:requirements:algorithms:qc2h1|specification]]) | 
 +| aggregation_flagchange | fr=9 | flags to set if a sliding aggregation exceeds a threshold (prioritet 1 in the [[kvalobs:kvoss:system:qc2:requirements:algorithms:qc2h1|specification]]) | 
 +| discarded_cflags | %%fr=9|fs=8|fmis=2%% | specify which rows shall be regarded as "bad" and excluded from further tests | 
 +| discarded_uflags | no constraint | ::: | 
 +| stations | --- | resolutions and station ids, see below | 
 +| sliding_alarms | --- | periods (in minutesand precipitation thresholds for sliding aggregation test, see below |
  
-<code> +=== Option stations ===
-select obstime, original from data where paramid=105 and obstime between '2008-06-23' and '2008-06-24' and stationid=17980; +
-       obstime       | original  +
----------------------+---------- +
- 2008-06-23 02:22:00 |      0.1 +
- 2008-06-23 02:23:00 |      0.1 +
- 2008-06-23 02:24:00 |      0.2 +
- 2008-06-23 02:26:00 |      0.1 +
- 2008-06-23 02:27:00 |      0.1 +
- 2008-06-23 02:28:00 |      0.1 +
- 2008-06-23 02:30:00 |      0.1 +
- 2008-06-23 02:32:00 |      0.1 +
- 2008-06-23 03:52:00 |      0.1 +
- 2008-06-23 04:17:00 |      0.1 +
- 2008-06-23 04:21:00 |      0.3 +
- 2008-06-23 04:22:00 |      0.3 +
- 2008-06-23 04:24:00 |      0.2 +
- 2008-06-23 04:25:00 |      0.1 +
- 2008-06-23 04:27:00 |      0.1 +
- 2008-06-23 05:18:00 |      0.1 +
- 2008-06-23 05:21:00 |      0.1 +
- 2008-06-23 05:23:00 |      0.1 +
- 2008-06-23 05:24:00 |      0.1 +
- 2008-06-23 05:25:00 |      0.1 +
- 2008-06-23 05:26:00 |      0.1 +
- 2008-06-23 05:27:00 |      0.1 +
- 2008-06-23 05:29:00 |      0.1 +
- 2008-06-23 05:30:00 |      0.1 +
- 2008-06-23 05:31:00 |      0.1 +
- 2008-06-23 05:35:00 |      0.1 +
- 2008-06-23 05:41:00 |      0.1 +
- 2008-06-23 05:45:00 |      0.1 +
- 2008-06-23 06:01:00 |      0.1 +
- 2008-06-23 08:48:00 |      0.1 +
- 2008-06-23 08:50:00 |      0.3 +
- 2008-06-23 08:51:00 |      0.4 +
- 2008-06-23 08:52:00 |      0.2 +
- 2008-06-23 08:53:00 |      0.5 +
- 2008-06-23 08:54:00 |      0.2 +
- 2008-06-23 08:56:00 |      0.1 +
- 2008-06-23 09:00:00 |      0.1 +
- 2008-06-23 09:01:00 |      0.3 +
- 2008-06-23 09:02:00 |      0.3 +
- 2008-06-23 09:13:00 |      0.1 +
- 2008-06-23 09:21:00 |      0.1 +
- 2008-06-23 10:07:00 |      0.1 +
- 2008-06-23 10:34:00 |      0.1 +
- 2008-06-23 10:35:00 |      0.2 +
- 2008-06-23 10:40:00 |      0.1 +
- 2008-06-23 12:05:00 |      0.1 +
- 2008-06-23 12:07:00 |      0.1 +
- 2008-06-23 12:13:00 |      0.1 +
-</code>+
  
-|2008-06-23 02:22:00 |      0.1 | +This parameter contains a resolution in mm-per-tipping, and a list of stations. Example
-|2008-06-23 02:23:00 |      0.1 +  stations = 0.1:3015,3019,3030;0.2:200,1220,2840,3030,3190,3290,3810 
-|2008-06-23 02:24:00 |      0.2 | +This list should not be written manually, but using the script **stinfosys-vipp-pluviometer.pl** which extracts the station list from stinfosysThis script uses **stinfosys** to determine which sensors deliver RR_01 and which resolution these sensors haveTherefore it is important to register the sensors in **stinfosys**The script uses a SQL query similar to this one:
-|2008-06-23 02:26:00 |      0.1 | +
-|2008-06-23 02:27:00 |      0.1 | +
-|2008-06-23 02:28:00 |      0.1 | +
-|2008-06-23 02:30:00 |      0.1 | +
-|2008-06-23 02:32:00 |      0.1 | +
-|2008-06-23 03:52:00 |      0.1 | +
-|2008-06-23 04:17:00 |      0.1 | +
-|2008-06-23 04:21:00 |      0.3 | +
-|2008-06-23 04:22:00 |      0.3 | +
-|2008-06-23 04:24:00 |      0.2 | +
-|2008-06-23 04:25:00 |      0.1 | +
-|2008-06-23 04:27:00 |      0.1 |+
  
-Sliding aggregations (2,3,5,10 ...)+<code> 
 +SELECT si.stationidem.description FROM sensor_info AS siequipment AS eqequipmentmodel AS em  
 +    WHERE em.description LIKE '%unit_resolution=mm per vipp%'  
 +    AND paramid = 105 
 +    AND em.modelname = eq.modelname AND si.equipmentid = eq.equipmentid 
 +    AND ((si.totime IS NULL AND si.fromtime <= now()
 +        OR (si.totime IS NOT NULL AND now() BETWEEN si.fromtime AND em.totime)) 
 +    ORDER BY si.stationid 
 +</code>
  
-e.g. 2 minute bins ...+=== Option sliding_alarms ===
  
-|2008-06-23 02:22:00 |      0.1 | x | | | | | 0.+This option describes the duration and threshold for the sliding aggregation tests. The format is like this: 
-|2008-06-23 02:23:00 |      0.1 | x |x | | | | 0.+  sliding_alarms = 2<8.1;3<11.9;5<16.2;10<25.6;15<27.3;20<34.4;30<42.0;45<49.1;60<54.9;90<56.7;180<60.8;360<83.3;720<144.1;1440<159.7 
-|2008-06-23 02:24:00 |      0.2 |   |x |x | | | 0.2 +The durations must be increasing.
-|2008-06-23 02:25:00 | | | |x |x | | 0.1 | +
-|2008-06-23 02:26:00 |      0.1 | | | |x |x |0.2| +
-|2008-06-23 02:27:00 |      0.1 | | | | | | etc+
-|2008-06-23 02:28:00 |      0.1 | | | | | | | +
-|2008-06-23 02:29:00 | . | | | | | | | +
-|2008-06-23 02:30:00 |      0.1 | | | | | | | +
-|2008-06-23 02:31:00 | . | | | | | | | +
-|2008-06-23 02:32:00 |      0.1 | | | | | | | +
-... | . | | | | | | | +
-|2008-06-23 03:52:00 |      0.1 | | | | | | | +
-| ... |. | | | | | | | +
-|2008-06-23 04:17:00 |      0.1 | | | | | | | +
-| ... |.|  | | | | | | +
-|2008-06-23 04:21:00 |      0.3 | | | | | | | +
-|2008-06-23 04:22:00 |      0.3 | | | | | | | +
-|2008-06-23 04:23:00 | . | | | | | | | +
-|2008-06-23 04:24:00 |      0.2 | | | | | | | +
-|2008-06-23 04:25:00 |      0.1 | | | | | | | +
-|2008-06-23 04:26:00 | | | | | | | | +
-|2008-06-23 04:27:00 |      0.1 | | | | | | |+
  
  • kvalobs/kvoss/system/qc2/requirements/algorithms/plumatic.1310110086.txt.gz
  • Last modified: 2022-05-31 09:23:18
  • (external edit)