I have this data from an ultrasonic sensor. it works great when the pellet stove is off, but when its on, all kinds of noise is introduced by heat, vibrations, fan noise, etc.
the bottom of the graph is where the correct data is. I already set up a lambda to filter unwanted values, no I just want the bottom data points. avg doesnt work as it skews high.
filters:
#throw away unusable values
- filter_out: nan
- lambda: |-
if (x >= 0.4){
return 0.4;
} else if (x <= 0){
return 0.01;}
return x;
now I need an advanced filter to grab only the lowest values from the graph, where the real data is!