Fwd: Southern Hemisphere wind barbs in panel plots

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 09 2013 - 11:56:46 MDT

Begin forwarded message:

> From: David Brown <dbrown@ucar.edu>
> Subject: Re: Southern Hemisphere wind barbs in panel plots
> Date: July 9, 2013 11:54:50 AM MDT
> To: Kyle Griffin <ksgriffin2@wisc.edu>
>
> Hi Kyle,
> I will look into this problem as soon as possible.
> -dave
>
> On Jul 8, 2013, at 5:27 PM, Kyle Griffin <ksgriffin2@wisc.edu> wrote:
>
>> Hi all,
>>
>> Although NCL does automatically account for Southern Hemisphere wind barbs in single-map applications, I believe I've found a bug in trying to use this feature in panel applications. My experiments suggest that the automatic flipping of the wind barbs only occurs on the first panel of the plot, leaving the other panels with NH wind barbs (see attached). The first thought for a workaround is to manually set vcWindBarbTickAngleF = -62.0, but this results in flipping the direction for *all* panels, making the first panel plot NH-oriented barbs. I've included the resource settings and plotting commands I've used for completeness, since my script is likely too complicated/messy to include here and probably not necessary for diagnosing this problem. Thanks!
>>
>>
>> Kyle
>>
>> ; All vector resources, even those that shouldn't be relevant here
>> vres@vcGlyphStyle = "WindBarb"
>> vres@vcRefLengthF = 0.022
>> vres@vcRefMagnitudeF = 10.0
>> vres@vcRefAnnoOn = False
>> vres@vcMinDistanceF = 0.022
>> vres@vcWindBarbLineThicknessF = 3.0
>> ;vres@vcWindBarbTickAngleF = -62.0
>>
>> ;............. plot data below, looping over i until numPanels-1
>>
>> mpid(i) = gsn_csm_map(wks,mpres)
>> pwflid = gsn_csm_contour(wks,theta({curdate},:,:),pwres)
>> cnid = gsn_csm_contour(wks,vort({curdate},:,:),cres)
>> vcid = gsn_csm_vector(wks,u_pv(i,:,:),v_pv(i,:,:),vres)
>>
>> overlay(mpid(i),pwflid)
>> overlay(mpid(i),cnid)
>> overlay(mpid(i),vcid)
>>
>> ;.....set some generic panelRes options here, then....
>>
>> gsn_panel(wks,mpid,(/ntimes,1/),panelres)
>>
>>
>> ----------------------------------------
>> Kyle S. Griffin
>> Department of Atmospheric and Oceanic Sciences
>> University of Wisconsin - Madison
>> Room 1421
>> 1225 W Dayton St, Madison, WI 53706
>> Email: ksgriffin2@wisc.edu
>> <dt_panel_fig.png>_______________________________________________
>> 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 Tue Jul 9 11:56:55 2013

This archive was generated by hypermail 2.1.8 : Fri Jul 12 2013 - 16:37:39 MDT