-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for all time monthly averages #69
Comments
There is already an extension for calculating such averages: https://github.com/gjr80/weewx-averages |
Ideally this would be part of the table, not separate from it. |
After releasing the next version, I will take care of this. |
I've still didn't have the time to take care about this and I am not sure how to present it on the page, it may overload it. |
Ok, then let's specify the desired behavior: We want to have the possibility to show averages for calendar months and calendar years on the history page. For calculating monthly averages, every fully covered calendar month/year in the database will taken for calculation:
A "fully covered" month/year is considered a month/year which has a directly preceding and a directly following period containing values, which, in the example above, are Sep 2015 trough Nov 2024 for the months, and 2016 through 2023 for the years. Furthermore, it should be possible to show the min/max values in the same manner. In the example above, the minimum minTemp for Januarys is -17.6, the average minTemp -9.5, the maximum minTemp -3.1. Any additions? Are there observation types where this is not possible? For windDir a min or max wouldn't make any sense, the average would be the dominating direction. |
I need to think about this. It might help if you send me a link to the website you are looking at.
From: mKainzbauer ***@***.***>
Sent: 14 December 2024 10:18
To: brewster76/fuzzy-archer ***@***.***>
Cc: Shunra ***@***.***>; Comment ***@***.***>
Subject: Re: [brewster76/fuzzy-archer] Support for all time monthly averages (Issue #69)
Ok, then let's specify the desired behavior:
We want to have the possibility to show averages for calendar months and calendar years on the history page. For calculating monthly averages, every fully covered calendar month/year in the database will taken for calculation:
In the above example:
* the average January is calculated using Jan 2016 through Jan 2024
* the average August is calculated using Aug 2016 through Aug 2024
* the average September is calculated using Sep 2015 through Sep 2024
* the average December is calculated using Dec 2015 through Dec 2023
* the average year is calculated using 2016 through 2023
A "fully covered" month/year is considered a month/year which has a directly preceding and a directly following period containing values, which, in the example above, are Sep 2015 trough Nov 2024 for the months, and 2016 through 2023 for the years.
It shall be possible to show/hide the row containing the overall averages by configuration, for each and every summary table.
Furthermore, it should be possible to show the min/max values in the same manner. In the example above, the minimum minTemp for Januarys is -17.6, the average minTemp -9.5, the maximum minTemp -3.1.
Any additions? Are there observation types where this is not possible? For windDir a min or max wouldn't make any sense, the average would be the dominating direction.
—
Reply to this email directly, view it on GitHub<#69 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKMMTIN4TSJ2WG4SBMICQXD2FQAU7AVCNFSM6AAAAABTTLNL52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGA2DENRYHE>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
I was referring to #69 (comment) where @Fux2 posted the minTemp table, obviously a SC from my station: https://kainzbauer.net/weather/Rif/de/history.html |
Thanks, it’s clear what this is about now. I will take a better look over the next few days.
From: mKainzbauer ***@***.***>
Sent: 14 December 2024 10:27
To: brewster76/fuzzy-archer ***@***.***>
Cc: Shunra ***@***.***>; Comment ***@***.***>
Subject: Re: [brewster76/fuzzy-archer] Support for all time monthly averages (Issue #69)
I was referring to #69 (comment)<#69 (comment)> where @Fux2<https://github.com/Fux2> posted the minTemp table, obviously a SC from my station: https://kainzbauer.net/weather/Rif/de/history.html
—
Reply to this email directly, view it on GitHub<#69 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKMMTIJQADV5UIK5S5LLF3T2FQBVNAVCNFSM6AAAAABTTLNL52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGA2DKMJUGQ>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
@mKainzbauer: Full acknowledge. Yes, the posted picture was a mock-up - made from a screenshot with some additions (average values are not correct and just as an example).
|
Sorry to come to this late.
My view is that the average rainfall for a calendar month is total rainfall / number of days, and for a part month the divisor would be the number of days would reflect that part-month. So, start on 2nd February and it’s 27 days. 1st - 29th December is 29 days. And so on.
If you want the average over a number of years I see no reason not to include a monthly average calculated in that way.
From: Fux2 ***@***.***>
Sent: 23 December 2024 12:16
To: brewster76/fuzzy-archer ***@***.***>
Cc: Shunra ***@***.***>; Comment ***@***.***>
Subject: Re: [brewster76/fuzzy-archer] Support for all time monthly averages (Issue #69)
@mKainzbauer<https://github.com/mKainzbauer>: Full acknowledge.
Thinkings about windDir are fine as well.
Yes, the posted picture was a mock-up - made from a screenshot with some additions (average values are not correct and just as an example).
Ok, then let's specify the desired behavior:
We want to have the possibility to show averages for calendar months and calendar years on the history page. For calculating monthly averages, every fully covered calendar month/year in the database will taken for calculation: In the above example:
* the average January is calculated using Jan 2016 through Jan 2024
* the average August is calculated using Aug 2016 through Aug 2024
* the average September is calculated using Sep 2015 through Sep 2024
* the average December is calculated using Dec 2015 through Dec 2023
* the average year is calculated using 2016 through 2023
A "fully covered" month/year is considered a month/year which has a directly preceding and a directly following period containing values, which, in the example above, are Sep 2015 trough Nov 2024 for the months, and 2016 through 2023 for the years. It shall be possible to show/hide the row containing the overall averages by configuration, for each and every summary table.
Furthermore, it should be possible to show the min/max values in the same manner. In the example above, the minimum minTemp for Januarys is -17.6, the average minTemp -9.5, the maximum minTemp -3.1.
Any additions? Are there observation types where this is not possible? For windDir a min or max wouldn't make any sense, the average would be the dominating direction.
—
Reply to this email directly, view it on GitHub<#69 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKMMTILQ3YO2GS74AAEGQET2G75IPAVCNFSM6AAAAABTTLNL52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJZGU4TCOBUGY>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
What you propose is the average average/sum/high/low/... of values that where recorded in a calendar month with a specific name. That's not my understanding of what's desired. What's desired is the average average/sum/high/low/... of a calendar month with a specific name, which only makes sense when a month is fully covered, at least to a certain degree. For instance, around the 45° N an average first of April will have a significantly lower mean outTemp than an average 30th of April. Or worse, regarding discrete obs_types: when you have covered very wet July 29, 30 and 31, but not the rest of the month, the average rainfall for this month would be completely out of the ballpark. |
Then it comes down to how many days of a month are covered to include it. 21? More?
From: mKainzbauer ***@***.***>
Sent: 09 January 2025 16:55
To: brewster76/fuzzy-archer ***@***.***>
Cc: Shunra ***@***.***>; Comment ***@***.***>
Subject: Re: [brewster76/fuzzy-archer] Support for all time monthly averages (Issue #69)
What you propose is the average average/sum/high/low/... of values that where recorded in a calendar month with a specific name. That's not my understanding of what's desired. What's desired is the average average/sum/high/low/... of a calendar month with a specific name, which only makes sense when a month is fully covered, at least to a certain degree. For instance, around the 45° N an average first of April will have a significantly lower mean outTemp than an average 30th of April. Or worse, regarding discrete obs_types: when you have covered very wet July 29, 30 and 31, but not the rest of the month, the average rainfall for this month would be completely out of the ballpark.
I do agree there has to be a bit of a fuzzy definition of what "fully covered" means, because every once in a while even the most reliable of our stations will miss the one or the other archive interval.
—
Reply to this email directly, view it on GitHub<#69 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKMMTILFXVSEIZ2W52SUAUD2J2SVPAVCNFSM6AAAAABTTLNL52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBQHAYTCMBSGU>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
No such thing at all. Because we will work with what we've got and we won't overcomplicate things:
In cases, where there may be significant data gaps, we know: it's a data problem, and we won't invent any quirky algorithms, tweaks, or whatever else, to pretend a data accuracy that simply isn't there. |
Great history page.
Can we have a last row after all years with average for all years month wise? Like Jan average across all years, Feb average across all years and so on? I know this is something that weewx doesnt support natively and we need to create xtypes for same.
The text was updated successfully, but these errors were encountered: