Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

RainDayThreshold

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

RainDayThreshold

Post by mcrossley »

Steve

I understood (and put in the Wiki) the following...
RainDayThreshold=-1 The threshold value which the daily rainfall has to exceed for the day to be considered a 'rain day'. Default -1 = 0.2mm or 0.01in. Value is entered in your current rain units.
But it appears that the threshold used is >= the value in the ini file (or the default in my case), rather than simply greater than?

EDIT: Or I wonder is it because my 0.2mm of rain is > 0.2 due to rounding/floating point errors?

EDIT2: Um, no rounding/calibration error I can see. Cumulus recorded my rainfall on the 28th as 0.199791878461838mm, but also counted that as a rain day.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: RainDayThreshold

Post by steve »

mcrossley wrote:Cumulus recorded my rainfall on the 28th as 0.199791878461838mm
It writes the rainfall to the log files to 1 decimal place (for millimetres) so I assume it actually wrote 0.2 to the log file? Values like the one you've quoted appear in today.ini simply because I don't bother doing any rounding on them and that's how floating point values come out when you do that.

The check that it does is >= and it rounds to 3 decimal places to do the check. So the value you've quoted rounds to 0.2 and is a rain day by default.
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: RainDayThreshold

Post by mcrossley »

Thanks Steve I'll amend the wiki...
Toongsteno
Posts: 2
Joined: Tue 01 Dec 2015 6:36 pm
Weather Station: pce fws 20
Operating System: Windows 7
Location: Feltre

Re: RainDayThreshold

Post by Toongsteno »

ok, -1 corresponds to 0.2 mm, but if i want to modify? 0 is more or less? and how much more or less? Where can i find these informations?
Thank you
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: RainDayThreshold

Post by steve »

I don't really understand the question. Any positive value is just the value you specify, in the rainfall units that you are using in Cumulus. Zero would mean that every day was counted as a rain day, so you probably don't want that.
Steve
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: RainDayThreshold

Post by freddie »

steve wrote:I don't really understand the question.
I think Toongsteno doesn't realise that you just put in your threshold value - and that "-1" is a placeholder that says "use the default that's in the code".
Freddie
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: RainDayThreshold

Post by steve »

Ah, OK - as if "-1" was a code for 0.2 mm, so what are the codes for other values...

Hopefully now clear :)
Steve
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: RainDayThreshold

Post by freddie »

steve wrote:Ah, OK - as if "-1" was a code for 0.2 mm, so what are the codes for other values...
Yep, that's what I was driving at...
Freddie
Image
Toongsteno
Posts: 2
Joined: Tue 01 Dec 2015 6:36 pm
Weather Station: pce fws 20
Operating System: Windows 7
Location: Feltre

Re: RainDayThreshold

Post by Toongsteno »

Exactly. Sometimes Cumulus (via my WS) reports that there were some precipitations but it is not true. In fact there were some night frost or dew, but the setted threshold makes read this as rain. I'm trying to figure out which is the best setting to ignore that light amount of water. I've not been able to understand how to modify the Cumulus .ini, and the only reference i've found is this post. Where is it explained what the several values stand for? Anyway, thank you Steve and Freddie, i understood a little more :)
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: RainDayThreshold

Post by steve »

There aren't any settings to make Cumulus ignore rainfall completely. The RainDayThreshold setting only affects the count of the number of days where rain is regarded as having fallen, for example on the "This year" and "This month" screens etc.

Your rain gauge has a resolution of 0.3mm - that's how much rain is in one tip. So if you set RainDayThreshold=0.4 Cumulus will only count days where at least two tips occurred as a 'rain day'. Note that if your locale uses commas for decimals, you also need to use commas in cumulus.ini, so you would put RainDayThreshold=0,4

You should edit cumulus.ini with Cumulus stopped.
Steve
Post Reply