Re: How to make ref vector smaller in size

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 02 2012 - 13:49:26 MDT

For this specific situation there is also a resource vcMinMagnitudeF. Vectors less than the specified magnitude will not appear in the plot.
 -dave

On Oct 2, 2012, at 1:43 PM, Adam Phillips wrote:

> Hi Soumik,
> You can use the where function to mask your data when it doesn't meet a
> specific criteria:
> x = where(x.lt.0.5,x@_FillValue,x)
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml
>
> Adam
>
> On 10/2/12 1:39 PM, Rick Brownrigg wrote:
>> Hi Soumik,
>>
>> The cvRefLengthF is given specified in NDC coordinate space (i.,e., 0,--1.). A value of 0.5 would span half the plot, which looks about right in the example you've given.
>>
>> Rick
>>
>> On Oct 2, 2012, at 1:26 PM, Soumik Basu wrote:
>>
>>> Hi,
>>>
>>> I am trying to make a vector plot. I am attaching the plot. Can anyone suggest me how do I make the ref vector smaller in size keeping the arrows in the plot exactly the same size as they are now.
>>> Also is it possible to plot only vectors above a certain magnitude so that I can filter out the small vector arrows. Here is my vector resources:
>>>
>>>
>>> vres = True
>>> vres@vcRefMagnitudeF = 1e+06 ; make vectors larger
>>> vres@vcRefLengthF = 0.5 ; ref vector length
>>> vres@vcGlyphStyle = "LineArrow" ; turn on curly vectors
>>> vres@vcMinDistanceF = 0.01 ; thin the vectors
>>> vres@vcRefAnnoOrthogonalPosF = -0.13 ; Move ref anno into plot
>>>
>>> vres@mpCenterLonF = 180
>>>
>>>
>>> Thanks,
>>> Soumik
>>>
>>> --
>>> "Numbing the pain for a while will make it worse when you finally feel it.
>>> ~J.K. Rowling"
>>> *****************************************
>>> Soumik Basu
>>> Graduate Student, Research Assistant
>>> International Arctic Research Center
>>> University of Alaska Fairbanks
>>> Fairbanks,Alaska,USA
>>> *****************************************<div.000002.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
>
> _______________________________________________
> 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 Oct 2 13:49:35 2012

This archive was generated by hypermail 2.1.8 : Mon Oct 08 2012 - 15:54:16 MDT