Re: problem: "zero field" label and vcMinMagnitudeF

From: Davolio Silvio <S.Davolio_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 03 2012 - 08:18:10 MDT

Dear Mary,
just un update. I would like to know if the bug has been fixed.
I have not found anything in the last month messages

Many Thanks
Regards
Silvio

On Tue, 19 Jun 2012, Mary Haley wrote:

> Silvio,
>
> Thanks for the clarification. I was able to reproduce the problem, and I've filed a bug report, NCL-1495.
> I tried setting vcZeroFLabelString to an empty string, but this didn't work either.
>
> --Mary
>
> On Jun 19, 2012, at 9:11 AM, Davolio Silvio wrote:
>
>>
>> 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)
>> --- ---
>

**********************************************
* 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)
--- ---
Received on Fri Aug 3 08:18:16 2012

This archive was generated by hypermail 2.1.8 : Fri Aug 03 2012 - 14:39:58 MDT