Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
kvalobs:kvoss:system:qc2:requirements:algorithms:diptest03 [2011-04-16 16:46:25] paule |
kvalobs:kvoss:system:qc2:requirements:algorithms:diptest03 [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== QC2d-1: Dip test ====== |
- | {{: | + | {{kvalobs: |
* fs=2 for A(t), | * fs=2 for A(t), | ||
Line 7: | Line 7: | ||
* fs=1 for A(t-2) | * fs=1 for A(t-2) | ||
- | <code> | + | A dip is detected if <m> |
- | | + | where < |
- | | + | < |
- | and | + | |
- | | + | |
- | </code> | + | |
- | where DELTA is dependent on the parameter | + | The neighboring points at t-2 and t may not have missing original values and have |
+ | to match the flags specified in **linear_before_*flags** and **linear_after_*flags**, | ||
+ | respectively. | ||
- | < | + | If there are 2 additional usable data points before and 1 usable additional data point after t-1, |
- | set fs=9 for A(t-1) | + | [[Akima splines]] are used for the interpolation and cfailed receives a message |
- | set fs=6 for A(t) | + | **QC2d-1-A**. To be usable, the original value may not be missing |
- | </ | + | to match the flag specification **akima_*flags** in the configuration if it is not |
+ | an immediate neighbor of t-1, and . | ||
- | A(t-1) receives a corrected value by interpolation. The interpolation method can be linear | + | If akima interpolation |
+ | a message **QC2d-1-L**. | ||
+ | ==== Configuration ==== | ||
- | ====== Strategy ====== | + | Beyond the standard configuration options detailed in the [[kvoss: |
+ | the following options are available for DipTest. | ||
- | **Configuration File** | + | |
+ | | ||
+ | * linear_before_cflags (default: fs=1) and linear_before_uflags (default: /no constraint/ | ||
+ | * linear_after_cflags (default: fs=2& | ||
+ | * dip_flagchange (default: fs=9) specifies the flag modification for t-1 if an interpolation is performed | ||
+ | * afterdip_flagchange (default: fs=4) specifies the flag modification for t if an interpolation is performed | ||
+ | * ParValFilename specifies either (no default, must be specified, see below for examples) | ||
+ | * a filename containing a list of parameter-delta pairs | ||
+ | * or a list of parameter-value pairs when starting with **list:** | ||
- | < | + | === ParValFilename === |
- | # | + | |
- | Algorithm=DipTest | + | |
- | RunAtHour=21 | + | If using a file to specify parameter-delta pairs, the file must be formatted like this: |
- | RunAtMinute=53 | + | |
+ | 2 | ||
+ | 81 10.0 | ||
+ | 85 10.0 | ||
+ | 86 12.5 | ||
- | # Time interval specification (can also be a specific start and stop time) | + | If using a list to specify parameter-delta pairs, the parameter must be given like this: |
- | Last_NDays=3 | + | |
- | #[Specific Data Type and Paramters ids etc.] | + | ==== Parameters ==== |
- | ParValFilename="/ | + | |
- | #Flag required for neighbour | + | Relevant parameters are all those subject |
- | U_2=0 | + | |
- | # Only write data it it has not been analysed by HQC | + | ==== Previous met.no dip tests ==== |
- | W_fhqc=0 | + | |
- | </ | + | |
- | + | ||
- | There are some important new features in the configuration file: | + | |
- | - The specification of the algorithm is now handled by a string, i.e. Algorith=DipTest (or " | + | |
- | - For the first algorithms (e.g. SingleLinear) a separate configuration file exists for each paramid. This leads to many separate configuration files and is rather cumbersome. Here there is one configuration file that points to an additional file that includes the parameter ids to process and any other specific information. In this case the file includes the DELTA paramter (see next excerpt below). Later all this information can be managed in a Qc2 table in the database if this is preferred. | + | |
- | + | ||
- | **Paramter ID file** | + | |
- | + | ||
- | < | + | |
- | 1 9.0 | + | |
- | 2 | + | |
- | 81 | + | |
- | 85 | + | |
- | 86 | + | |
- | ... | + | |
- | </ | + | |
- | + | ||
- | The specific criteria for the DipTest (i.e. fs = 1, 2, 2 for three consecutive points and the value checks defined above) are, for the first version, encoded in the algorithm. | + | |
- | + | ||
- | The algorithm steps back in time checking each successive set of three points (sliding window). If a dip is confirmed a linear interpolation is first applied using the immediate temporal neighbours. The algorithm then checks if there are enough neighbours available of sufficient quality (U_2=0, set in the config file) to perform an Akima Interpolation. If this is satisfied the Akima value is used in preference to that generated from the linear interpolation. | + | |
- | + | ||
- | For each case the results in the kvalobs database are as follows: | + | |
- | + | ||
- | Linear: | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | Akima: | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | Note for testing only the linear value is also included in cfailed (see above). | + | |
- | + | ||
- | An update of the Flag specification has beeb made and an example of the change is illustrated here: | + | |
- | + | ||
- | + | ||
- | + | ||
- | ====== Parameters ====== | + | |
- | + | ||
- | Relevant parameters are all those subject to the step check (QC1-3a): | + | |
- | ^ paramid ^ parameter ^ δ(X) ^ | + | |
- | | **1** | AA | | | + | |
- | | **2** | BI| | | + | |
- | | **81** | + | |
- | | **85** | + | |
- | | **86** | + | |
- | | **87** | + | |
- | | **88** | + | |
- | | **89** | + | |
- | | **90** | + | |
- | | **91** | + | |
- | | **92** | + | |
- | | **93** | + | |
- | | **94** | + | |
- | | **104** | + | |
- | | **105** | + | |
- | | **113** | + | |
- | | **123** | + | |
- | | **172** | + | |
- | | **174** | + | |
- | | **175** | + | |
- | | **176** | + | |
- | | **177** | + | |
- | | **197** | + | |
- | | **198** | + | |
- | | **199** | + | |
- | | **200** | + | |
- | | **201** | + | |
- | | **211** | + | |
- | | **212** | + | |
- | | **213** | + | |
- | | **215** | + | |
- | | **221** | + | |
- | | **222** | + | |
- | | **223** | + | |
- | | **225** | + | |
- | | **227** | + | |
- | | **262** | + | |
- | | **264** | + | |
- | | **265** | + | |
- | + | ||
- | ===== Dip test flags ===== | + | |
- | |Flag value|Definition|useinfo(2) consequence| | + | |
- | |**fs=4**|Kontrollert. Mistanke om feil detektert i QC1-3. Ingen tilsvarende feil i QC2d-1. Ingen korreksjon.|**Friskmeldt.**| | + | |
- | |fs=5|Kontrollert. Ingen mistanke om feil detektert i QC1-3. Mistanke om feil detektert i QC2d-1.Ingen korreksjon.|Originalverdi noe mistenkelig.| | + | |
- | |**fs=9**|Kontrollert. Observert endring høyere enn testverdi. Korrigert automatisk.|**Originalverdi sikkert feilaktig.**| | + | |
- | + | ||
- | ===== Previous met.no dip tests ===== | + | |
The report 24/93 KLIMA " | The report 24/93 KLIMA " | ||
Line 143: | Line 65: | ||
| | ||
| | ||
- | | + | |
+ | |||
+ | For wind and temperature the Kvalobs dip test will flag more often than Øgland' | ||
- | For wind and temperature the Kvalobs dip test will flag more often than by Øgland' |