Fix bug possible erroneous HN24 values bug
authorAlexander Vasarab <alexander@wylark.com>
Fri, 21 Jan 2022 02:13:19 +0000 (18:13 -0800)
committerAlexander Vasarab <alexander@wylark.com>
Fri, 21 Jan 2022 02:13:19 +0000 (18:13 -0800)
commitbfef0fa925cf5c02e220f93e7aa14f998ca2590e
tree38aa91e7eeddbf7af01843574164432811c51651
parent992a343b1c78aeaa23c2d481f7f8655e11f777bf
Fix bug possible erroneous HN24 values bug

In certain cases, HN24 can be reported erroneously. What triggers this
is e.g. a storm which deposits 5cm of low-density snow which quickly
settles. During such a storm, the HS over a 24-hour period may go from
e.g. 100cm to 105cm then back to 100cm.

The root cause was taking the difference between the highest HS value
reported over a 24-hour period and subtracting the lowest value. But
when HS fluctuates throughout a storm due to rapid settlement and/or
wind, this calculation does not provide correct data.

Additionally, this bugfix opens the door to reporting HS settlement to
InfoEx should InfoEx support that data via autostations.
infoex-autowx.py