Difference between $span(time_delta=604800).radiation.max and $week.radiation.max

27 views
Skip to first unread message

MaKi68

unread,
May 21, 2026, 6:42:25 AM (19 hours ago) May 21
to weewx-user
Hello,

Is it true that $span(time_delta=604800).radiation.max shows me the highest radiation of the last 7 day and $week.radiation.max the highest radiation of the current week (for me since monday).
If that's the case, why can $week.radiation.max (eg. 1146 W/m²) be higher than $span(time_delta=604800).radiation.max (eg. 1092 W/m²)?

Thank you so much for your support.

Kind regards
Manfred



Tom Keffer

unread,
May 21, 2026, 7:54:01 AM (18 hours ago) May 21
to weewx...@googlegroups.com
The answer is that they use slightly different data sets.

$span(time_delta=604800).radiation.max looks through the archive records, typically spaced every 5 minutes apart, and finds the highest value for radiation for the last 7 days. Each of those archive records is an average value seen over the 5 minutes it represents.

$week.radiation.max runs from midnight at the beginning of the week to the present time, so it can use the daily summaries. These have recorded the highest value seen for the week, including LOOP packets. So if there was a momentary high value that lasted for only a second, this tag will find it.

If it bugs you that there is a difference, you can set option loop_hilo (under [StdArchive]) to false, and LOOP packet values will no longer be used for the daily highs and lows.

Hope that helps.

-tk

--
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/058c1365-781b-4e0e-ae46-f0933f0f43dan%40googlegroups.com.

MaKi68

unread,
May 21, 2026, 8:32:52 AM (17 hours ago) May 21
to weewx-user
Hello Tom,

I understand.
Thank you.

Kind regards
Manfred
Reply all
Reply to author
Forward
0 new messages