Page 1 of 1

webtags

Posted: Sun 24 May 2020 10:24 pm
by water01
If I am being stupid say so but when there is no data for a webtag (e.g. #ByMonthTempH mon=1 in my case as the station was not running in January) it returns "---". Is there a way to get it to return "000" instead?

Re: webtags

Posted: Sun 24 May 2020 10:55 pm
by ExperiMentor
You could process the string afterwards to convert --- to anything you like.
Strictly, --- is a better representation for missing than is the value zero (which could be a real temperature or wind speed).

Re: webtags

Posted: Sun 24 May 2020 11:08 pm
by water01
I know I could process the string but just wondered if there was a webtag way. If not the coding will have to be done.

Re: webtags

Posted: Mon 25 May 2020 7:54 pm
by mcrossley
Hi David, the answer is no, it will always return dashes for records with no value.

Re: webtags

Posted: Mon 25 May 2020 7:58 pm
by water01
Thanks for the definitive answer, now to work out some code!! :D :D :D