Windrose with nine sectors - advise, help, direction - help
Posted: Sun 31 Jul 2016 3:56 am
Looking for some direction, recommendations, and assistance with a "modified Windrose"
Background - My station is in the north east corner of Spain where dominant wind direction has its own unique nomenclature. Instead of the usual 12 sectors (N, NNE, NE...) the locals use nine sectors each with a unique arc and name (Provences - 31°, Gregal - 33°, LLevant - 34°, Xaloc - 46° ...... )
I display both the standard rose - http://www.wheelocknet.net/medes_cam/me ... _rose.html and the local 9 sector version - http://www.wheelocknet.net/medes_cam/me ... _rose.html on my site.
Needless to say I shamelessly use Mark's Windrose code almost verbatim for the standard rose and a modified version of Mark's code to drive a D3 chart for the 'Catalan" version.
The data for the nine Catalan sectors is interpreted via a complex of the standard realtime.txt and a couple of php scripts that combime output from an Oregon WM88 and a WM968 which provides a full 360 degree wind direction output.
The WM-968 is dying and I will soon be forced to rely on the WM-88 which provides only the twelve standard compass sectors.
What I hope to do is use the 'avgbearing' data which provides a ten minute wind bearing average which I would like to use for the sector arc data - 'averagebearing' of 1° to 30° = 'Provences', 'averagebearing of 99° - 144° = 'Xaloc' ...
The big problem, for me, is once I fetch a range of data from mysql I need to substitute the nine sector names for the appropriate avgbearing data in each row. How do I do that or does someone have a more creative approach.
I understand that I may be the only Cumulus user with this particular requirement so I understand there will be a huge lack of community interest. But I also know there are many creative members on this forum that enjoy odd, arcane, and challenging problems. Any level of advise, direction, and hints will be most appreciated.
George Wheelock
http://www.wheelocknet.net/medes_cam/medes_home.html
Background - My station is in the north east corner of Spain where dominant wind direction has its own unique nomenclature. Instead of the usual 12 sectors (N, NNE, NE...) the locals use nine sectors each with a unique arc and name (Provences - 31°, Gregal - 33°, LLevant - 34°, Xaloc - 46° ...... )
I display both the standard rose - http://www.wheelocknet.net/medes_cam/me ... _rose.html and the local 9 sector version - http://www.wheelocknet.net/medes_cam/me ... _rose.html on my site.
Needless to say I shamelessly use Mark's Windrose code almost verbatim for the standard rose and a modified version of Mark's code to drive a D3 chart for the 'Catalan" version.
The data for the nine Catalan sectors is interpreted via a complex of the standard realtime.txt and a couple of php scripts that combime output from an Oregon WM88 and a WM968 which provides a full 360 degree wind direction output.
The WM-968 is dying and I will soon be forced to rely on the WM-88 which provides only the twelve standard compass sectors.
What I hope to do is use the 'avgbearing' data which provides a ten minute wind bearing average which I would like to use for the sector arc data - 'averagebearing' of 1° to 30° = 'Provences', 'averagebearing of 99° - 144° = 'Xaloc' ...
The big problem, for me, is once I fetch a range of data from mysql I need to substitute the nine sector names for the appropriate avgbearing data in each row. How do I do that or does someone have a more creative approach.
I understand that I may be the only Cumulus user with this particular requirement so I understand there will be a huge lack of community interest. But I also know there are many creative members on this forum that enjoy odd, arcane, and challenging problems. Any level of advise, direction, and hints will be most appreciated.
George Wheelock
http://www.wheelocknet.net/medes_cam/medes_home.html