Re: problem: "zero field" label and vcMinMagnitudeF

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 19 2012 - 08:23:22 MDT

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

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

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