A new feature is a month span within a given year. Say you want to know the
highest temperature of the last winter season. That is not a single month
some months ago, and that is not some month ago up to now. That is a
special period of time within each year in turn.
$LMTyear(years_ago=1,month_span=(12,2)).outTemp.max shows the maximum
temperature of the last winter season, given, that is from December to
February.
$LMTyear(month_span=(6,8)).outTemp.GDD({'method':'dayavg','base':(20.0,'degree_C')})
is the sum of all average temperatures above 20°C within the summer, which
is called the warmth sum.
Karen K schrieb am Freitag, 11. Juni 2021 um 20:51:35 UTC+2:
> I extended the weewx-GTS extension <https://github.com/roe-dl/weewx-GTS>.
>
> This also refers to the issue #91
> <https://github.com/weewx/weewx/issues/91> and the discussion Australia
> New Weather Measurement Day is 9am not Midnight
> <https://groups.google.com/g/weewx-user/c/kcblP3PUwU8> here at Google.
> But at first I considered that the plants know nothing about timezones and
> daylight saving time. On the other hand, local timezones can easily be 2 or
> even 3 hours away from local sundial time. That is much. And calculating
> averages or max and min values with a day boundary that much away from real
> midnight (antitransit of the sun) may not be optimal.
>
> So I created some additional tags to define time spans that have other day
> boundaries than midnight local timezone time. The offset ist defined within
> the tag. For example, if you want to aggregate from 9:00 am to 9:00 am and
> your local timezone offset is 2:00, you could write
>
> $offsetday(dayboundary=-25200).rain.sum
>
> to get the rain of the day with day boundary at 9:00 am. Please note: The
> offset is in seconds from UTC. For Python <3.7 the value is rounded to
> whole minutes.
>
> $offsetmonth() and $offsetyear() are also available.
>
> $LMTday, $LMTmonth, $LMTyear define the day according to Local Mean Time,
> which is at most a quarter of an hour away from sundial time and thus may
> be the best base to calculate growing degree days.
>
> It is still beta.
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/65933be4-cdd7-4e33-8ee4-9202856d6831n%40googlegroups.com.