In this example, it looks like when there is only one conductivity value surrounded by missing values within the threshold window, the test flags the one valid conductivity value.
We think we have a modification to qartod.py that checks to make sure there are at least 3 valid data points in the test window:
The flat_line_test doesn't appear to work in datasets with lots of missing values. ioos_qc version 2.0.1
Example netcdf file here
Example configuration file: test_flatline.txt
In this example, it looks like when there is only one conductivity value surrounded by missing values within the threshold window, the test flags the one valid conductivity value.
We think we have a modification to qartod.py that checks to make sure there are at least 3 valid data points in the test window:
add line 663:
modify line 665 (now 666):
When these lines are added/modified in qartod.py, the result for this example becomes: