Re: Drawing wind barbs on a map

From: Fred Clare <fredclare_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 04 2010 - 11:38:24 MST

If you can't get your data into 2D arrays, you can always roll your own, like the example weather_sym_5.ncl at:

 http://ncl.ucar.edu/Applications/weather_sym.shtml

Fred Clare

On Mar 4, 2010, at 9:01 AM, Mary Haley wrote:

> Hi,
>
> Jimmy is correct. The "wmbarb" and "wmbarbmap" routines draw the wind
> barbs
> right when they are called, and they are not attached to the map.
> Hence, if
> you have gsnMaximize set, the map will get resized, but the wind
> barbs won't.
>
> This is an unfortunate limitation of these routines. We do have it in
> our "to do"
> list to add the capability to generate wind barbs that you can attach
> to a map.
>
> If you are able to get your wind barb data into 2D arrays, then you
> can use the
> vector plotting routines with "vcGlyphStyle" set to "WindBarb".
>
> See: http://www.ncl.ucar.edu/Applications/barb.shtml
>
> --Mary
>
> On Mar 3, 2010, at 6:26 PM, Correia, James wrote:
>
>> Hi-
>> Updated:
>> I think the issue is that wmbarbmap needs to be associated with the
>> gsn_csm_contour_map call. However, when I change that I have to
>> turn off
>> gsnMaximize to get it to fit the map, but it still doesn't like to be
>> paneled. So I guess I need to use the vpXF and vpYF and associated
>> resources.
>>
>> jimmyc
>>
>>
>> On 3/3/10 3:39 PM, "Correia, James" <james.correia@pnl.gov> wrote:
>>
>>> Hi-
>>> I am trying to draw wind barbs on a map.
>>>
>>> I am making a panel plot of station data, like so:
>>> res@gsnDraw = False
>>> res@gsnFrame = False
>>> plot(0) = gsn_csm_contour_map(wks,var(:,0),res)
>>> ...
>>>
>>> The calling the overlay and barb routine:
>>> wmsetp("col",1)
>>> wmsetp("wbs",.05)
>>> res1@gsnDraw = False
>>> res1@gsnFrame = False
>>>
>>> plt = gsn_csm_contour(wks,frq(0,:),res1)
>>> wmbarbmap(wks,nlat,nlon,mu,mv)
>>> overlay(plot(0),plt)
>>> ...
>>>
>>> Then call gsn_panel.
>>>
>>> According to the examples on weather symbols this *should* work.
>>> But, alas, no
>>> wind barbs on my map, and no errors to report. I thought maybe I
>>> had the order
>>> of nlat and nlon incorrect but I tried it both ways and still
>>> nothing.
>>>
>>> So do I need to somehow draw it first or should it be already
>>> overlaid on plt?
>>> Thanks for any insight...
>>> jimmyc
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 4 11:39:00 2010

This archive was generated by hypermail 2.1.8 : Thu Mar 04 2010 - 15:07:06 MST