Avg/mean of min and max values in NOAA reports

60 views
Skip to first unread message

Andrew McGinnis

unread,
Feb 22, 2025, 3:22:17 PM2/22/25
to weewx-user
I'm tying to figure out how to add average values to certain observations in my NOAA reports.  I'd like to have the monthly outdoor temperature maximums and minimums averaged, such that the bottom like summary would have an average max temp, average mean temp, and average low temp.
My bottom-of-report line includes this:

$month.outTemp.max.nolabel($Temp,$NONE) $month.outTemp.avg.nolabel($Temp,$NONE) $month.outTemp.min.nolabel($Temp,$NONE)

but what I would like is an average high, average mean, and average low.  The overall monthly mean is easily defined by $month.outTemp.avg, but what would the equivalent be for monthly average of $month.outTemp.max and $month.outTemp.min?

Tom Keffer

unread,
Feb 22, 2025, 5:24:53 PM2/22/25
to weewx...@googlegroups.com
Reasonable request for an aggregation such as "avgmax" or "avgmin", but unfortunately, the box doesn't come with one. You would have to write a search list extension.

--
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 visit https://groups.google.com/d/msgid/weewx-user/e587c5c7-11ca-419c-8d73-9a73160fa18an%40googlegroups.com.

Andrew McGinnis

unread,
Feb 22, 2025, 6:52:10 PM2/22/25
to weewx...@googlegroups.com
I apparently managed to PM myself with a reply. 

meanmin and meanmax exist; I found them 2 minutes after posting. They work for my high and low averages. The month.temp.avg is a little different than an average of the daily mean temps that are shown by day.temp.avg, but I’m chalking that up to pulling the average of the whole month’s worth of temp records (where gaps exist due to various reasons), rather than directly averaging the averages. 

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Rbpd5zf-whc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAfOSBKH7%3DZAxHwn8XgUMk_B7nR1aCE%2BChcLoOQ2v1sHg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages