Vantage barometric reduction in _loop_map

31 views
Skip to first unread message

Paul G

unread,
Feb 25, 2022, 11:54:05 AM2/25/22
to weewx-user
I'm trying to understand how pressure is processed in weewx v4 and I see this line in the loop mapping dictionary:

 'bar_reduction'   : lambda p, k: float(p[k]) / 1000.0 if p[k] else None,

Since Barometric Reduction Method has a value in 0..2 shouldn't it be mapped with an identity function? E.g. lambda p, k: p[k]

Tom Keffer

unread,
Feb 25, 2022, 12:25:19 PM2/25/22
to weewx-user
Right you are! Thanks.

Fixed in commit 70a947c.

Nice to know someone is using type 2 packets.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f9a8beec-04c9-4cc5-9ba8-ab6d3fb2afd6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages