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:singlelinear [2010-09-05 21:11:44]
paule
kvalobs:kvoss:system:qc2:requirements:algorithms:singlelinear [2022-05-31 09:29:32] (current)
Line 1: Line 1:
  
-====== Single Linear ======+====== QC2d-2: SingleLinear ======
  
-Replaces a single missing value with a linear interpolated valueIf a corresponding max or min paramids are also specified then checks that the correction lies within the available max ... min range, if the interpolated values falls outside this range then the algorithm sets the corrected value to the nearest of max or min. Run for any paramid and optional max, min specified in the configuration file+Replaces a single missing value with a value obtained by linear interpolation between the immediate neighbors. 
 +See the specification {{kvalobs:kvoss:system:qc2:qc2-d2_flagg_08_2010_v32.pdf|3.2}}.
  
-**For TAspecific use cases to address:**+The neighboring values may not be missing and must match the **neighbor_*flags** specification. 
 +If an interpolation is madecfailed receives a message **Qc2d-2**.
  
-i.e. check the following examples in comparison with specification from the flag group ...+==== Configuration ====
  
-<code> +Beyond the standard configuration options detailed in the [[kvoss:system:qc2:user|user guide]]
-kvalobs=# select * from data where paramid=211 and obstime between 'yesterday' and 'today' and substr(controlinfo,7,1)='2'; +the following options are available for SingleLinear.
-kvalobs=# select * from data where paramid=211 and obstime between 'yesterday' and 'today' and substr(controlinfo,7,1)='3'; +
-kvalobs=# select count(*) from data where paramid=211 and obstime between 'yesterday' and 'today' and substr(controlinfo,7,1)='1'; +
-</code>+
  
-This is under construction ...+  * missing_cflags (default: ftime=0&fmis=[1234]&fhqc=0|ftime=1&fmis=[14]&fhqc=0) and missing_uflags (default: no constraint) specify the flags for interpolation candidatesMissing values not matching these flags will not be detected. 
 +  * neighbor_cflags (default: fmis=0) and neighbor_uflags (default: U0=[37]&U2=0) specify flag requirements for the neibhbor points 
 +  * ftime0_flagchange (default: ftime=1;fmis=3->fmis=1;fmis=2->fmis=4) specifies the flag modification for the missing point if ftime was 0 
 +  * ftime1_flagchange (default: fmis=1->fmis=3;fmis=4->fmis=2) specifies the flag modification for the missing point if ftime was 1 
 +  * ParamId specifies a parameter id that should be inspected. This option can be given multiple times, and the check will be performed for all given parameter ids in the order they are specified in the configuration file.
  
-FIXME+==== Parameters ==== 
 + 
 +This algorithm works only for hourly measurements.
  
  • kvalobs/kvoss/system/qc2/requirements/algorithms/singlelinear.1283721104.txt.gz
  • Last modified: 2022-05-31 09:23:18
  • (external edit)