Perform a dynamic lim-rule-check
This check tests data on whether it exceeds a dynamic threshold.
qat_analyse_lim_rule_dynamic_1d(measurement_vector, min_vector = NULL, max_vector = NULL, min_vector_name = NULL, max_vector_name = NULL, min_vector_identifier = NULL, max_vector_identifier = NULL)
- The measurement vector, which should be tested
- A vector which consists of the minimum threshold values, with the same dimension like the measurement vector
- A vector which consists of the maximum threshold values, with the same dimension like the measurement vector
- A name or title of the minimum vector, which will be given back in the result
- A name or title of the maximum vector, which will be given back in the result
- The identifier of the maximum vector
- The identifier of the minimum vector
This tests tests every element, on whether it exceeds the minimum or maximum threshold. The result will be given back as a list, which contains the result of the test as a flagvector and its parameters. For every element of the measurement vector the flagvector contains a -1, if its exceeding its dedicated minimum vector element, a 1, if its exceeding its dedicated maximum vector element, or a 0, when no exceeding has happend. NaN-values in the measurement vector will be given back as a 0 in the flagvector, NaN-values in the minimum or maximum-vector are considered as not existing. There is no checking, if the maximum-vector is greater than the minimum-vector.
It returns a list with the following entries:
There is no checking, if the maximum-vector is greater than the minimum-vector.
Meek, D.W., Hatfield, J.L. (1994) Data quality checking for single station meteorological databases, \_Agricultural and Forest Meteorology\_, *69* (1-2), 85-109.
vec <- rnorm(1000) min_vector<-seq(-1,-2,length.out=1000) max_vector<-seq(1,2,length.out=1000) result <- qat_analyse_lim_rule_dynamic_1d(vec, min_vector, max_vector, min_vector_name="minimum vector", max_vector_name="maximum vector")