Page 1 of 1

wind average webtag

Posted: Tue 01 Feb 2022 12:09 am
by Mapantz
At midnight, my php tags file was processed, I spotted an unusually high wind average.. :lol:

Code: Select all

$windAvg="<#windAvg dp=1>";

Code: Select all

$windAvg="698.1";
It was bang on 00:00:00

So, I'd guess that being the webtag gives a rolling average, it didn't have much time to accumulate any data, hence the wild number.. :lol:

Re: wind average webtag

Posted: Tue 01 Feb 2022 9:29 am
by mcrossley
That's an interesting one.

Because the calculation uses values for "today" just after rollover the numbers will be tiny and the resulting figure could be a "bit whacky".

Really it is one of those figures that should be used retrospectively to previous days when a full days data is available, the value for today is a bit of indicator.

I'll put in a check for "tiny" times and return zero in that case - that is better than some wildly large value.