Page 1 of 1
Last Rain - Bug?
Posted: Wed 01 May 2013 12:51 pm
by simonvfr
Noticed today that #LastRainTipISO seems to record even if the actual 'rain' is a spike which is ignored by Cumulus through the settings set in Configuration.
So currently my tooltip and web tag show last rain as today 13:48:27, when in fact last rain accepted as valid is 13:15. Error log shows entries like 01/05/2013 13:52:00 : Ignoring high rain rate: 3686.40 mm/hr
Shouldn't ignored rain (for totals) also be ignored for #LastRainTipISO ?
beta 1.9.4 Build 1070
Re: Last Rain
Posted: Wed 01 May 2013 2:42 pm
by steve
The ignoring of total rain is nothing to do with the 'spike removal' settings, those are for values calculated by Cumulus. It attempts to ignore large sudden increases in the rain counter independently of those settings, by noting the difference between consecutive readings and comparing them to the cumulus.ini file setting "EWMaxRainTipDiff", using a default value of 30 tips (i.e 9 mm) if that item isn't present.
If it gets six consecutive readings that are all above the threshold, it decides that the rain counter really has changed (but erroneously) and adjusts the start of day counter so that the erroneous increase doesn't affect the total. I suspect that what might happen is that the code which sets the 'last rain tip' time doesn't take account of the adjusted start of day counter, so it gets set at that point. If you attach the current diags file, I may be able to see what's happening.
Re: Last Rain - Bug?
Posted: Wed 01 May 2013 2:47 pm
by simonvfr
Latest diags file as requested
Re: Last Rain - Bug?
Posted: Wed 01 May 2013 2:56 pm
by steve
Thanks. Yes, as suspected, it had to adjust for a large increase in the counter:
01/05/2013 13:48:27.998 : Six consecutive readings; accepting value. Adjusting start of day figure to compensate
But apparently it doesn't take that into account when working out whether to set the 'last rain tip' time; I'll see if I can fix that.
Re: Last Rain - Bug?
Posted: Wed 01 May 2013 2:59 pm
by simonvfr
Thanks - super rapid response appreciated!
Re: Last Rain - Bug?
Posted: Sat 04 May 2013 9:00 am
by simonvfr
Reported Wednesday pm, fixed in Cumulus 1.9.4 beta build 1072 Saturday am
Fantastic!