Page 1 of 1

Wedbtags for number of wet/dry days

Posted: Fri 03 May 2013 5:04 pm
by RayProudfoot
Hi Steve,

The number of wet and dry days can be seen inside Cumulus but there doesn't appear to be any webtags for the monthly and annual counts.

If I raise a request enhancement is there a chance you will include them before work commences on C3?

Re: Wedbtags for number of wet/dry days

Posted: Fri 03 May 2013 5:57 pm
by steve
I've already started on C3 (or whatever), I've been working on it for some time now. But anyway... those figures are calculated on the fly from dayfile.txt, so it's not practical to have web tags for them, and it would be a big change to store them somewhere they would be more accessible. However, as it happens, I've been thinking about this sort of thing recently. I'm thinking that Cumulus could read dayfile.txt into memory and store it as an in-memory database. This would open up all kinds of new web tags, like monthly/annual averages, wet and dry days etc. A lot of 'basic' useful information that isn't currently available.

It would mean an increase in the memory footprint, but I don't think it would be significant (my dayfile.txt is only 340k and goes back nearly six years; the in-memory database would obviously have overheads so would be bigger).

So basically, any web tags which could be determined from data in dayfile.txt would then be possible.

Re: Wedbtags for number of wet/dry days

Posted: Fri 03 May 2013 10:07 pm
by RayProudfoot
Hi Steve,

If you've already started on C3 then I'm content to wait. I wouldn't know how to calculate wet/dry days anyway but I've lived without these for years so a bit longer is no problem.

What you've described sounds excellent, can't wait. :)

Re: Wedbtags for number of wet/dry days

Posted: Sat 04 May 2013 7:42 am
by steve
A lot of information that isn't currently available as web tags is in the NOAA-style reports. I've had a few requests locally recently for historic data and those reports gave them just what they wanted.

Re: Wedbtags for number of wet/dry days

Posted: Sun 05 May 2013 11:51 am
by kapo
Hi
How are those wet and dry days able to count, or are there already webtags for them? I have used many evenings to find out those , but... as always nothing gaught out:::

Re: Wedbtags for number of wet/dry days

Posted: Sun 05 May 2013 12:02 pm
by steve
kapo wrote:How are those wet and dry days able to count, or are there already webtags for them?
You can view them in Cumulus on the 'This month' screen, etc, but there aren't any web tags, that's why Ray is asking for them in this thread. Or have I misunderstood your question?

Re: Wedbtags for number of wet/dry days

Posted: Sun 05 May 2013 12:39 pm
by kapo
steve wrote:
kapo wrote:How are those wet and dry days able to count, or are there already webtags for them?
You can view them in Cumulus on the 'This month' screen, etc, but there aren't any web tags, that's why Ray is asking for them in this thread. Or have I misunderstood your question?
No You understood just right, but I red negligently that question. Just those webtags I meant, because I should like to put those on my web page under that other rain info.
And that info I want is this month and month ago... Sorry I red wrong...

best regards:

Re: Wedbtags for number of wet/dry days

Posted: Sun 05 May 2013 12:47 pm
by steve
At the moment, the only way that Cumulus stores the information is by the amount of rain for each day in dayfile.txt. So to calculate the number of wet and dry days for a particular month, it has to go through dayfile.txt, adding up the days with zero and non-zero totals. It's not practical to do this for a web tag - the performance would be terrible - so it would need to change to store it in some other way, preferably in memory rather than on disk, so that it can access it in a efficient way for a web tag.

Re: Wedbtags for number of wet/dry days

Posted: Sun 05 May 2013 2:23 pm
by kapo
O.k.
That was only a question.... Those rain / norain days come in Cumulus maybe someday... or not. It aint big thing to me, only thinking what else there could be shown in webpage...

Cumulus is really better than good to me as it is now...

With best regards: