rossyndicate / poudre_sonde_network

MIT License
0 stars 7 forks source link

Tweak the slope flagging code #23

Closed kathryn-willi closed 10 months ago

kathryn-willi commented 1 year ago
          todo/suggestion: this is another spot that only tags the beginning and end of a run of data that are likely to be problematic and need to be flagged. The first data point where the slope ahead is greater than the threshold is *technically* an acceptable value. The flag for slope ahead should actually be the NEXT observation.

_Originally posted by @steeleb in https://github.com/rossyndicate/poudre_sonde_network/pull/18#discussion_r1294882863_

Essentially, remove the part in the code where we flag slope_ahead >= slope_thresh. Preserve slope_behind >= slope_thresh