Combining Wind Direction and Wind Speed Data into Wind Barb

6 Messages Forum Options Options
Embed this topic
Permalink
John Schattel
Combining Wind Direction and Wind Speed Data into Wind Barb
Reply Threaded MoreMore options
Print post
Permalink
I am retrieving wind data from a Web Feature Service.  I'd like to
combine the wind speed data and wind direction data into a wind barb as
shown below:

http://ww2010.atmos.uiuc.edu/(Gh)/guides/maps/sfcobs/wnd.rxml

Can I do this with Udig?  If so, how would I go about merging the two
data sets into the one graphic.

In advance, thanks for any help you can provide.

John

--
John.Schattel@...
(301) 713-0056 x111

The contents of this message are mine personally and do not necessarily reflect any position of NOAA.

_______________________________________________
udig-users mailing list
udig-users@...
http://lists.refractions.net/mailman/listinfo/udig-users
Jesse Eichar-2
Re: Combining Wind Direction and Wind Speed Data into Wind Barb
Reply Threaded MoreMore options
Print post
Permalink
Hi,

There are two ways to do this.  Implementing a MapGraphic is probably  
the easiest.  Create a MapGraphic extension that draws the wind speed/
barb.

The other way is complicated but I'll quickly throw it out just to be  
complete.  You make a IService for the wind data/ wind direction  
(maybe one for each).  Then implement a Renderer for drawing them.  
Sounds simple but really it will be around 10 classes.

Jesse

On 11-Aug-08, at 10:46 PM, John Schattel wrote:

> I am retrieving wind data from a Web Feature Service.  I'd like to  
> combine the wind speed data and wind direction data into a wind barb  
> as shown below:
>
> http://ww2010.atmos.uiuc.edu/(Gh)/guides/maps/sfcobs/wnd.rxml
>
> Can I do this with Udig?  If so, how would I go about merging the  
> two data sets into the one graphic.
>
> In advance, thanks for any help you can provide.
>
> John
>
> --
> John.Schattel@...
> (301) 713-0056 x111
>
> The contents of this message are mine personally and do not  
> necessarily reflect any position of NOAA.
>
> _______________________________________________
> udig-users mailing list
> udig-users@...
> http://lists.refractions.net/mailman/listinfo/udig-users

_______________________________________________
udig-users mailing list
udig-users@...
http://lists.refractions.net/mailman/listinfo/udig-users
Jody Garnett
Re: Combining Wind Direction and Wind Speed Data into Wind Barb
Reply Threaded MoreMore options
Print post
Permalink
Thanks for the excellent summary of options; while the "style layer
descriptor" specification we use for rendering vector data is very
complete - wind barbs are a very hard problem :-) As are cold fronts and
a host of other interesting weather related symbology.

Since you asked on the user list I will have to say no - uDig cannot
render wind barbs. We would love to see the functionality developed -
and would be pleased to start you out in a good direction.

Jody

Jesse Eichar wrote:

> Hi,
>
> There are two ways to do this.  Implementing a MapGraphic is probably
> the easiest.  Create a MapGraphic extension that draws the wind
> speed/barb.
>
> The other way is complicated but I'll quickly throw it out just to be
> complete.  You make a IService for the wind data/ wind direction
> (maybe one for each).  Then implement a Renderer for drawing them.  
> Sounds simple but really it will be around 10 classes.
>
> Jesse
>
> On 11-Aug-08, at 10:46 PM, John Schattel wrote:
>
>> I am retrieving wind data from a Web Feature Service.  I'd like to
>> combine the wind speed data and wind direction data into a wind barb
>> as shown below:
>>
>> http://ww2010.atmos.uiuc.edu/(Gh)/guides/maps/sfcobs/wnd.rxml
>>
>> Can I do this with Udig?  If so, how would I go about merging the two
>> data sets into the one graphic.
>>
>> In advance, thanks for any help you can provide.
>>
>> John
>>
>> --
>> John.Schattel@...
>> (301) 713-0056 x111
>>
>> The contents of this message are mine personally and do not
>> necessarily reflect any position of NOAA.
>>
>> _______________________________________________
>> udig-users mailing list
>> udig-users@...
>> http://lists.refractions.net/mailman/listinfo/udig-users
>
> _______________________________________________
> udig-users mailing list
> udig-users@...
> http://lists.refractions.net/mailman/listinfo/udig-users

_______________________________________________
udig-users mailing list
udig-users@...
http://lists.refractions.net/mailman/listinfo/udig-users
Paul Ramsey
Re: Combining Wind Direction and Wind Speed Data into Wind Barb
Reply Threaded MoreMore options
Print post
Permalink
Why not? Do I misunderstand? Mapserver can do it.. it just takes a lot
of rules, and the ability to do rotated symbols.  So you feed
windspeed into a set of 5-6 rules that choose a symbols with the right
number of barbs, then rotate that symbol based on the wind direction,
voila.

What's uDig / SLD missing? The rotation-based-on-attribute part?

P.

On Tue, Aug 12, 2008 at 4:27 PM, Jody Garnett <jgarnett@...> wrote:

> Thanks for the excellent summary of options; while the "style layer
> descriptor" specification we use for rendering vector data is very complete
> - wind barbs are a very hard problem :-) As are cold fronts and a host of
> other interesting weather related symbology.
>
> Since you asked on the user list I will have to say no - uDig cannot render
> wind barbs. We would love to see the functionality developed - and would be
> pleased to start you out in a good direction.
>
> Jody
>
> Jesse Eichar wrote:
>>
>> Hi,
>>
>> There are two ways to do this.  Implementing a MapGraphic is probably the
>> easiest.  Create a MapGraphic extension that draws the wind speed/barb.
>>
>> The other way is complicated but I'll quickly throw it out just to be
>> complete.  You make a IService for the wind data/ wind direction (maybe one
>> for each).  Then implement a Renderer for drawing them.  Sounds simple but
>> really it will be around 10 classes.
>>
>> Jesse
>>
>> On 11-Aug-08, at 10:46 PM, John Schattel wrote:
>>
>>> I am retrieving wind data from a Web Feature Service.  I'd like to
>>> combine the wind speed data and wind direction data into a wind barb as
>>> shown below:
>>>
>>> http://ww2010.atmos.uiuc.edu/(Gh)/guides/maps/sfcobs/wnd.rxml
>>>
>>> Can I do this with Udig?  If so, how would I go about merging the two
>>> data sets into the one graphic.
>>>
>>> In advance, thanks for any help you can provide.
>>>
>>> John
>>>
>>> --
>>> John.Schattel@...
>>> (301) 713-0056 x111
>>>
>>> The contents of this message are mine personally and do not necessarily
>>> reflect any position of NOAA.
>>>
>>> _______________________________________________
>>> udig-users mailing list
>>> udig-users@...
>>> http://lists.refractions.net/mailman/listinfo/udig-users
>>
>> _______________________________________________
>> udig-users mailing list
>> udig-users@...
>> http://lists.refractions.net/mailman/listinfo/udig-users
>
> _______________________________________________
> udig-users mailing list
> udig-users@...
> http://lists.refractions.net/mailman/listinfo/udig-users
>
_______________________________________________
udig-users mailing list
udig-users@...
http://lists.refractions.net/mailman/listinfo/udig-users
Jody Garnett
Re: Combining Wind Direction and Wind Speed Data into Wind Barb
Reply Threaded MoreMore options
Print post
Permalink
Paul Ramsey wrote:
> Why not? Do I misunderstand? Mapserver can do it.. it just takes a lot
> of rules, and the ability to do rotated symbols.  So you feed
> windspeed into a set of 5-6 rules that choose a symbols with the right
> number of barbs, then rotate that symbol based on the wind direction,
> voila.
>
> What's uDig / SLD missing? The rotation-based-on-attribute part?
>  
I see your point Paul - we can in fact rotate the symbol based on an
attribute.

My understanding is that SLD was not up to the task; but perhaps I was
thinking if cold front / warm fronts (where the rules are even stranger).

What do we actually need for this one:
1) a website with the symbols as PNG or GIF files
2) a source of data (WFS?)
3) an SLD file with
- a rule for each symbol type
- PointSymbolizers drawing the symbol in the correct location, correct
orientation, color
- TextSymbolizer to postion those two wind speeds

Doing a quick web search I find a geoserver user has constructed
something like this already:
-
http://www.nabble.com/-Geoserver-devel--Re:-Wind-Barbs,-Contouring,-and-SLD-td434264.html

Seems a bit old however; and the example does not show an Expression for
the <Rotation>; but it may be a good starting point.
Jody
_______________________________________________
udig-users mailing list
udig-users@...
http://lists.refractions.net/mailman/listinfo/udig-users
Jody Garnett
Re: Combining Wind Direction and Wind Speed Data into Wind Barb
Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Paul Ramsey
Here is another interesting email from Gary:
- http://osdir.com/ml/gis.geotools2.user/2006-11/msg00025.html

Looking at:
-
http://www.newmediastudio.org/DataDiscovery/Hurr_ED_Center/Satellites_and_Sensors/QuikSCAT/QuikSCAT_fig6.gif

Looks like it may be some fun modal math to select the correct flags(s)
to draw.
Jody

Paul Ramsey wrote:
> Why not? Do I misunderstand? Mapserver can do it.. it just takes a lot
> of rules, and the ability to do rotated symbols.  So you feed
> windspeed into a set of 5-6 rules that choose a symbols with the right
> number of barbs, then rotate that symbol based on the wind direction,
> voila.
>
> What's uDig / SLD missing? The rotation-based-on-attribute part?
> P.
>  

_______________________________________________
udig-users mailing list
udig-users@...
http://lists.refractions.net/mailman/listinfo/udig-users