Page 1 of 1
Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 9:46 am
by Flosex
I have been running a Maplin N96FY (WH1081) weather station with Cumulus since 7 January 2014 and have a discrepancy with the monthly rainfall totals.
The monthly rainfall total shown in the View/This Month table is 69.9mm for January and 64.8mm for February, but in the View/Highs and Lows/All-Time table the highest monthly rain is shown as 65.1 for February! The difference between the 64.8 in the monthly table and the 65.1 in the all-time table is the 0.3 rainfall recorded for today, but why does the all-time total not show the 69.9 for January?
Chris
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 9:57 am
by steve
I can't answer that unless you still happen to have the diags files from the end of January. Did you edit the January rainfall totals, perhaps? I seem to remember that you did have some issue with rainfall in January?
If you zip up the alltimelog.txt file and attach it, I'll take a look at that.
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 10:07 am
by Flosex
No Steve, I don't have the January diags file, but have attached the alltimelog.txt file.
Thanks
Chris
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 10:33 am
by Flosex
Not sure if I included the attachment, Steve, so am sending again!
Chris
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 12:02 pm
by steve
Here are the last three entries for January:
2014-01-31 00:00 60.600 "Highest monthly rainfall" 2014-01-31 00:00 60.300
2014-01-31 23:22 11.700 "High daily rain" 2014-01-17 21:17 11.400
2014-01-31 23:57 12.000 "High daily rain" 2014-01-31 23:22 11.700
So 60.6 mm was your total for January, and your all-time record at that time. What is odd is that you clearly had some more rain after that highest monthly rain record was recorded, as your daily record was broken. In theory that should have affected your monthly record as well. But without the diags files to show me what happened on that day, I can't say why it didn't affect your monthly total. I can't see anything wrong with the code. Perhaps you restarted Cumulus and that somehow affected your total for the month when it was recalculated from dayfile.txt. Or you edited some of the January totals subsequently? Do you use a midnight 'rollover' or 0900? If 0900, that would explain it.
What does your figure for January show in the monthly all-time recoreds?
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 1:07 pm
by Flosex
Thanks Steve, I use a midnight roll-over.
January figure in the monthly all-time record shows 65.1 for February (January shows 60.6).
I haven't restarted Cumulus since restarting it on 7 January after our previous exchange of emails, or have I edited anything.
Is there a way to get the main Cumulus screen to show the correct rainfall for the year 125.7mm (60.6 for January plus the February figure of 65.1 so far - including 3mm for today)?
Chris
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 1:31 pm
by steve
Flosex wrote:January figure in the monthly all-time record shows 65.1 for February (January shows 60.6).
Which tallies with the all-time record figures.
I haven't restarted Cumulus since restarting it on 7 January after our previous exchange of emails, or have I edited anything.
By "restarted" I meant "closed Cumulus down and started it up again". Presumably you've done that a number of times, and may have done it at some point on Jan 31st?
Is there a way to get the main Cumulus screen to show the correct rainfall for the year 125.7mm (60.6 for January plus the February figure of 65.1 so far - including 3mm for today)?
It should be doing that anyway - what is it showing? It adds up all of the appropriate totals from dayfile.txt when it starts up, and then adjusts the two figures as more rain falls. Perhaps you have some kind of problem in dayfile.txt. If you zip up the diags folder and attach it, together with your dayfile.txt, I'll take a look.
Incidentally, looking at the code, I can see there is an issue where in some circumstances the wrong month might get logged for the all-time monthly rain record (e.g. it might say February instead of January), but it doesn't get the total wrong. I'll fix that, but that doesn't seem to apply in your case anyway.
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 2:30 pm
by Flosex
Sorry Steve, I misunderstood. I restart Cumulus each morning when I switch on my laptop (I switch it off overnight).
The main Cumulus screen is showing 65.1mm this month and 135.00 for the year.
Dayfile.txt and diags folder attached.
Chris
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 2:53 pm
by steve
Flosex wrote:The main Cumulus screen is showing 65.1mm this month and 135.00 for the year.
Yes, that's the correct figure - 69.9 for January plus 65.1 for February so far = 135.0 for the year so far. It's all consistent apart from the fact that on January 31st somehow the calculation was giving 60.6 for the month so far, and I can't explain that because I can't see the diags file for that period.
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 4:19 pm
by Flosex
OK Steve. Is there a way I can edit some of the file(s) so my All-time highs and lows show the Highest Monthly Rain (at the present time) as 69.9 for January (and not the 65.1 for February), please? Also, so that the All-time Highs and Lows Monthly record for January shows 69.9?
Chris
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 4:22 pm
by mcrossley
You can use the record editors built-in to Cumulus...
http://wiki.sandaysoft.com/a/FAQ#How_do ... records.3F
Re: Monthly Rainfall Discrepancy
Posted: Mon 17 Feb 2014 8:55 pm
by Flosex
Thanks Mark. Shame on me - I should have thought of checking the FAQs.
Your suggestion worked fine.
Chris