It is calm this morning.
MX is recording a bearing of zero, but direction is displayed as '
N' not as '---' as I saw with Cumulus 1.
Incidentally, N is
neither the recent direction, nor the direction my vane is currently pointing (SW my console and look out the window confirm), so Cumulus MX IS DOING PROCESSING on raw data.
To confirm that, I disabled "Use bearing zero when Calm" and then Cumulus
MX, my console and my look out of the window all indicated 'WSW'. I enabled it again and MX 3.5.1 went back to 'N'.
I stopped MX,
copied data folder of MX back into data folder of Cumulus 1, edited the date formats in today.ini into year last (instead of ISO as used by MX),
started Cumulus 1 and there
the direction is "---", but all other readings are same. Freddie - I said I remembered seeing '---' in Cumulus 1, well I have just confirmed my elderly memory is still proving reliable.
Did I go back to MX? - that does not matter, but we will see when Freddie's modification to MX is released whether all contributors to this topic start showing unknown direction in calm. And equally importantly, as Freddie said in his proposal for the function change, assign (for those weather stations that report bearings) small non-zero bearings of 1,2, 3, 4, 5, to 'North'.
In the beteljuice supplied function (I looked it up and he attributes it to beeker425 at
http://www.weather-watch.com/smf/index. ... 097.0.html), I use with my web pages, a modification I made was to specifically test for zero bearing and assign '---' for that. His original would indeed use 'North' for 0 degrees.
Code: Select all
function windDirVerbose($windBear)
{
if(!$windBear)return '---'; // added by SFWS
// user language e.g.North-Northwest
# Take wind direction value, return the VERBOSE text label based upon 16 point compass -- function by beeker425
# see http://www.weather-watch.com/smf/index.php/topic,20097.0.html
$langWindVerbose = [ // can be used in text for wind direction
"North", "North-North-east", "North-east", "East-North-east",
"East", "East-South-east", "South-east", "South-South-east",
"South", "South-South-west", "South-west", "West-South-west",
"West", "West-North-west", "North-west", "North-North-west","True North"];
return $langWindVerbose[floor((($windBear + 11) / 22.5) % 16 )]; // beteljuice uses +11 to put in centre of compass range (the .25 of the true value 11.25 would be removed by the floor operation anyway)
} // END function windDirVerbose
mcrossley wrote: ↑Mon 13 Apr 2020 12:41 pm
Iirc the "use zero for calm" option was for stations that did not implement that themselves - like the Fine Offset. I do not think its logic has been reversed.
In my log file, the bearing is recorded as zero when the wind speed drops to zero. Note that this is only the average speed and bearing.
Just to say, that in Cumulus 1,
both average speed and gust directions get reported as '---' in a calm, as well as
both bearings going to zero.