Re: problem: "zero field" label and vcMinMagnitudeF

From: Davolio Silvio <S.Davolio_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 19 2012 - 09:11:00 MDT

Dear Mary,
thanks for the promp answer.

Your script works, but the porblem is that rest@vcZeroFLabelOn = False
does not work if vcMinMagnitudeF is set

Starting from your example, and using u,v grater than 0, if you just add a
threshold you can not get rid of "Zero field" label:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

begin
   u = new((/100,100/),float)
   v = new((/100,100/),float)
   u = 4.
   v = 4.

   wks = gsn_open_wks("x11","gsn_vector")
   res = True
   res@gsnMaximize = True
   res@vcRefMagnitudeF = 50.
   res@vcRefLengthF = 0.045
   res@vcZeroFLabelOn = False
   res@vcGlyphStyle = "windbarb"
   res@vcMinMagnitudeF = 10. ; THIS IS THE NEW LINE

   plot = gsn_csm_vector(wks,u,v,res)

end

Thanks
Silvio

On Tue, 19 Jun 2012, Mary Haley wrote:

> Silvio,
>
> Setting rest@vcZeroFLabelOn = False should work.
>
> Try the script below:
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
> begin
> u = new((/100,100/),float)
> v = new((/100,100/),float)
> u = 0.
> v = 0.
>
> wks = gsn_open_wks("x11","gsn_vector")
> res = True
> res@gsnMaximize = True
> res@vcRefMagnitudeF = 50.
> res@vcRefLengthF = 0.045
> res@vcZeroFLabelOn = False
> res@vcGlyphStyle = "windbarb"
>
> plot = gsn_csm_vector(wks,u,v,res)
>
> end
>
>
>
> On Jun 19, 2012, at 7:55 AM, Davolio Silvio wrote:
>
>>
>> Dear Sirs,
>> I am trying to plot wind barbs only where speed is greater than 10 m/s
>> So I set my resource
>> res@vcMinMagnitudeF = 10.
>> The wind field is overlaid to eq. pot. temperature field.
>>
>> Everything works, but when wind is weak (less than the fixed threshold) all over the domain. In this case the "Zero Field" label apper (over the temperature field) and I can not get rid of it.
>>
>> Setting
>> resv@vcZeroFLabelOn = False
>> or
>> resv@vcZeroFLabelString = "" does not have any effect at all.
>>
>> Any ideas?
>>
>> Thanks
>> Silvio
>>
>>
>> **********************************************
>> * Silvio Davolio *
>> * *
>> * ISAC - CNR *
>> * Via Gobetti, 101 *
>> * 40129 Bologna *
>> * ITALY *
>> * *
>> * Ph +39 051 6399620 *
>> * Fax +39 051 6399658 *
>> * Mailto: S.Davolio AT isac.cnr.it *
>> * s.davolio AT libero.it (home) *
>> **********************************************
>>
>> Web Page: http://www.isac.cnr.it/dinamica/davolio
>> Cloud Gallery: http://www.isac.cnr.it/dinamica/davolio/NUBI
>>
>> --- ---
>> Sulla terra c'è abbastanza per soddisfare i bisogni di tutti,
>> ma non per soddisfare l'ingordigia di pochi. (Gandhi)
>> Earth provides enough to satisfy every man's need,
>> but not every man's greed. (Gandhi)
>> --- ---_______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

**********************************************
* Silvio Davolio *
* *
* ISAC - CNR *
* Via Gobetti, 101 *
* 40129 Bologna *
* ITALY *
* *
* Ph +39 051 6399620 *
* Fax +39 051 6399658 *
* Mailto: S.Davolio AT isac.cnr.it *
* s.davolio AT libero.it (home) *
**********************************************

Web Page: http://www.isac.cnr.it/dinamica/davolio
Cloud Gallery: http://www.isac.cnr.it/dinamica/davolio/NUBI

--- ---
Sulla terra c'è abbastanza per soddisfare i bisogni di tutti,
ma non per soddisfare l'ingordigia di pochi. (Gandhi)
Earth provides enough to satisfy every man's need,
but not every man's greed. (Gandhi)
--- ---

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jun 19 09:11:21 2012

This archive was generated by hypermail 2.1.8 : Mon Jun 25 2012 - 09:57:23 MDT