Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Wind rose - why the unusual shape not radial segements

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Wind rose - why the unusual shape not radial segements

Post by Stuart2007 »

I've been wondering why the Wind Rose gauge (I know it is not a standard Steelseries gauge) does not use the format commonly used for wind roses, eg see
http://en.wikipedia.org/wiki/Wind_rose which seems much more meaningful that the 'ink blot'.

Would it be too difficult to achieve?

Having just despiked my Fine Offset data (by smoothing the data to fill in the deep valleys, redistributing the peaks to rectify the undercounting of the 8 minor cardinals) I start to think the wind rose could be more useful if done in a set of 'pie slices'...I find the 'ink blot' shape visually confusing, probably just my tired old eyes :?

Only if Mark is interested, of course!

Stuart
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by mcrossley »

It requires a lot more data is one problem, data that would be hard to get out of Cumulus. There are Wind Rose components around that we could use, but I think you would need your data in a database to extract and process it in the required manner.
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Re: Wind rose - why the unusual shape not radial segements

Post by Stuart2007 »

Thanks Mark, I realise that the pies couldn't easily have wind speed applied (so a single colour) just so they were 'flat ended' rather than the edge sloping acutely so variation is lost to the eye... sort of like this...

Image

I suppose one could do a second colour for gust.

Stuart
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by William Grimsley »

Stuart2007 wrote:Thanks Mark, I realise that the pies couldn't easily have wind speed applied (so a single colour) just so they were 'flat ended' rather than the edge sloping acutely so variation is lost to the eye... sort of like this...

Image

I suppose one could do a second colour for gust.

Stuart
That's a lot of wind variation, Stuart! :lol:
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Re: Wind rose - why the unusual shape not radial segements

Post by Stuart2007 »

Not much wind, William, but lots of variation. You don't seem to do wind down your end at present!

Stuart
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by mcrossley »

User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by William Grimsley »

Stuart2007 wrote:Not much wind, William, but lots of variation. You don't seem to do wind down your end at present!

Stuart
Stupid Oak Trees, that block me from the WNW, NW and NNW! Very popular wind directions down here, I want to chop them down, ASAP!
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Re: Wind rose - why the unusual shape not radial segements

Post by Stuart2007 »

mcrossley wrote:What, like this you mean?
http://weather.wilmslowastro.com/gauges ... -basic.htm
:clap: :clap: :clap: Wow wow wow, I'm really impressed! Just the job! Can I use that, but with 16 segments? Is the code in windrose.js? Can I recolour it, and preferably grade the colour from Centre to outer edge?

I think even better with 22.5% pies - I've got my averaging going to even out the data for the slices see below:

Image

The smoothing function is just that any point = itself +25% of each either side, which assumes that the minor reedswitch is only actuated 1/3 of the time it should be.
This seems much better than just ignoring the minor 8....imho

Stuart
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by mcrossley »

Stuart2007 wrote:Can I use that, but with 16 segments?
Yes, I think I will use this for the next release.
Stuart2007 wrote:Is the code in windrose.js?
Yes, but you also need a new RGraph library
Stuart2007 wrote: Can I recolour it, and preferably grade the colour from Centre to outer edge?
Yes, I think the RGraph rose supports gradients.

Let me work on it for a bit, I will add some code to reduce the segment gaps as you increase the number of segments, it also looks like I need to customise the RGraph library a little (already made one change on the copy used above).

v2.2.0 of the gauges was ready to go, a bit more work to do now :lol:
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by mcrossley »

Ah, and I remember the problem with the rose now - the segments do not line up with the cardinal points, I will have to add another patch into the RGraph library to fix that.
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by gwheelo »

Yes, I think I will use this for the next release.
Brilliant - you are always moving in the right direction! I will certainly use it (16 points).

gwheelo
Image
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Re: Wind rose - why the unusual shape not radial segements

Post by Stuart2007 »

mcrossley wrote: <snip>

v2.2.0 of the gauges was ready to go, a bit more work to do now :lol:
Great stuff :clap:

Yes, it looks like you have segments which need rotating 22.5deg to point at NESW cardinals rather than between them.

I think my extra gauge code for Mill Heading in gauges.js means I will have to merge my bits into any new version of gauges.js...

Stuart
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by mcrossley »

Stuart2007 wrote:Yes, it looks like you have segments which need rotating 22.5deg to point at NESW cardinals rather than between them.
I fixed that last night, I also put a request in to the RGraphs author to make that orientation a standard option in his library.
thekow
Posts: 53
Joined: Wed 05 Dec 2012 8:39 am
Weather Station: w1080
Operating System: Virtualbox XP environment
Location: Australia
Contact:

Re: Wind rose - why the unusual shape not radial segements

Post by thekow »

Everything is looking good mark.
Post Reply