Re: Qs about wrf_vector

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 05 2012 - 09:26:17 MST

Hi,

I think you want to set vcRefLengthF instead. This will change the length of the reference vector that is specified by vcRefMagnitudeF.

http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcRefMagnitudeF
http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcRefLengthF

vcRefLengthF takes a value between 0.0 and 1.0, so try something small at first, like 0.05, and slowly increase it.

You can also see what "wrf_vector" is using for this value by default, by using getvalues:

      . . .
      vector = wrf_vector(a,wks,u10,v10,opts)
      getvalues vector
        "vcRefMagnitudeF" : mag
        "vcRefLengthF" : len
      end getvalues
      print("vcRefMagnitudeF = " + mag)
      print("vcRefLengthF = " + len)

--Mary

On Nov 5, 2012, at 1:38 AM, jxm delia wrote:

> Hi!
>
> I have a problem with plotting wind vector using the function wrf_vector.
> In fact, I want to make the vectors larger by setting some resources, so the windbarb can be more clear. However, I have tried to change the value of vcRefMagnitudeF, but it did't work at all. I'm wondwering whether the resource "vcRefMagnitudeF" applies to wrf_vector.
>
> Part of my script is as follows:
>
> ;Plotting options for Wind Vectors
> opts = res
> opts@FieldTitle = "Wind" ; overwrite Field Title
> opts@NumVectors = 40 ; density of wind barbs
> vector = wrf_vector(a,wks,u10,v10,opts)
> delete(opts)
>
> Thanks a lot!
>
> Xiaoman Jiang
>
> _______________________________________________
> 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 Mon Nov 5 09:26:24 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 06 2012 - 15:05:49 MST