IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

I strongly advise all users using my server for their web site to make alternative arrangements.

Outgoing mail is disabled because of the malware on the server. No new forum registrations are currently possible, and mail to the forum administrator will not work.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

"So far" day rainfall out of step with hourly totals

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
freddie
Posts: 282
Joined: Wed Jun 08, 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux (Ubuntu 18.04)
Location: Ystrad, Rhondda, Wales
Contact:

"So far" day rainfall out of step with hourly totals

Postby freddie » Fri Jun 01, 2018 9:53 am

Since changing my twitter.txt to report both hourly rainfall and day total so far, I noticed a discrepancy last night. Tweet for 2100 UTC:

Code: Select all

2100 UTC: Wind N 0.0 kts. Temp 17.1 C (max 09-09 21.8 C at 13:54, min 09-09 16.4 C at 09:00), Dew pt 15.7 C. Bar 1015.31 hPa, Rising slowly. Rain last hour 0.0 mm (rain 09-09 1.4 mm) #ukweather


Tweet for 2200 UTC last night:

Code: Select all

2200 UTC: Wind N 0.0 kts. Temp 17.0 C (max 09-09 21.8 C at 13:54, min 09-09 16.4 C at 09:00), Dew pt 15.9 C. Bar 1015.41 hPa, Rising slowly. Rain last hour 1.2 mm (rain 09-09 2.8 mm) #ukweather


You can see that there was 1.2 mm of rain (rain last hour 2100-2200) but the daily total changed from 1.4 mm to 2.8 mm. Looking at the rainfall graph, there was a "tip" between 2100 and 2101. It looks as if the tip was not attributed to the hourly total at 2200 UTC, and was in effect lost. Daily total was correct at both 2100 UTC and 2200 UTC.
Freddie
Image

User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: "So far" day rainfall out of step with hourly totals

Postby steve » Fri Jun 01, 2018 12:03 pm

I’ll have a look at the code when I next have my laptop out.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: "So far" day rainfall out of step with hourly totals

Postby steve » Fri Jun 01, 2018 6:08 pm

I think this is similar to your other recent query. Cumulus maintains a list of readings for the last hour, adding a new one each minute and deleting those which are older than an hour ago. It determines the rainfall in the last hour from the difference between the rain counter in the first entry in the list and the last entry. So depending on the timing of when a rain tip occurs and when the the actual comparison is done, it is possible that the tip occurred slightly more than one hour ago, but at the previous comparison it hadn't occurred yet. Bear in mind that all of this happens in separate threads, so sometimes actions can occur in a different order.

I'll admit that I haven't totally convinced myself that the explanation is as above, but without seeing the data readings and the timing of exactly when Cumulus received the reading readings relative to when it updated the list and when it actioned the web tag in your twitter.txt file, it I can't come up with anything better.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

freddie
Posts: 282
Joined: Wed Jun 08, 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux (Ubuntu 18.04)
Location: Ystrad, Rhondda, Wales
Contact:

Re: "So far" day rainfall out of step with hourly totals

Postby freddie » Fri Jun 01, 2018 7:46 pm

That was my first thought too - a question of timing. But the tip didn't register in the previous hour's total either, so it was effectively lost from the hourly totals from the day. That was the bit that caught my attention as I couldn't account for the tip at all. I'm happy, though, as it wasn't lost from the daily total - but thought you'd like to be made aware of the anomoly.
Freddie
Image


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 3 guests