<div dir="ltr">Thanks guys,<div style>Im using this a work-around prior to plot the vector,</div><div style><br></div><div style><span style="font-size:13px">u = where(sqrt(u*u + v * v) .lt. min_magnitude, u@_FillValue, u)</span><br style="font-size:13px"><span style="font-size:13px">v = where(sqrt(u*u + v * v) .lt. min_magnitude, v@_FillValue, v)</span><br></div><div style><span style="font-size:13px"><br></span></div><div style><span style="font-size:13px">but the results are not the same as the use of </span><span style="font-size:13px"> </span><b style="font-size:13px">res@vcMinMagnitudeF </b></div><div style><span style="font-size:13px">thanks</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 8:47 PM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kyle is definitely correct in saying that "curly vectors are more akin<br>
to streamlines". In fact at the low level, a modified version of the<br>
streamline code is used to implement them. That is also why the<br>
vcMinMagnitudeF is not currently enabled for curly vectors. However,<br>
since each curly vector originates from a specific grid point where a<br>
single vector magnitude can be computed, it seems to me that there is<br>
nothing to prevent vcMinMagnitudeF from being supported for curly<br>
vectors. Whether it will produce a good looking result or not is<br>
another question.<br>
<br>
A work-around might be to use the "where" function, with your<br>
user-defined min_magnitude:<br>
u = where(sqrt(u*u + v * v) .lt. min_magnitude, u@_FillValue, u)<br>
v = where(sqrt(u*u + v * v) .lt. min_magnitude, v@_FillValue, v)<br>
<br>
before plotting. Let us know if you have problems getting this to work.<br>
<br>
I will create a ticket for implementing vcMinMagnitudeF for curly vectors.<br>
-dave<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Wed, Dec 10, 2014 at 7:50 AM, Kyle Griffin <<a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a>> wrote:<br>
> I'm not Dave, but I'll go ahead and say "no" - CurlyVectors are more akin to<br>
> streamlines in that they don't exist at any one "point" but rather get<br>
> longer and turn with the wind as magnitude increases. You can't simply turn<br>
> off the CurlyVector in some areas as it would break up the streamline by<br>
> falling below an arbitrary magnitude. vcMinMagnitude seems to look the best<br>
> with either LineArrow or FillArrow glyphs, in my experience.<br>
><br>
> Good luck!<br>
><br>
><br>
> Kyle<br>
><br>
> ----------------------------------------<br>
> Kyle S. Griffin<br>
> Department of Atmospheric and Oceanic Sciences<br>
> University of Wisconsin - Madison<br>
> Room 1421<br>
> 1225 W Dayton St, Madison, WI 53706<br>
> Email: <a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a><br>
><br>
> On Wed, Dec 10, 2014 at 7:04 AM, Xi Chang <<a href="mailto:xi.chang01@gmail.com">xi.chang01@gmail.com</a>> wrote:<br>
>><br>
>> Hi Dave, HI NCL,<br>
>><br>
>> so, is there any way around how to use " res@vcMinMagnitudeF " for<br>
>> "CurlyVector" mode?<br>
>> Thanks<br>
>><br>
>> chang.<br>
>><br>
>> On Fri, Nov 7, 2014 at 3:22 PM, David Brown <<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>> wrote:<br>
>>><br>
>>> Try turning off the curly vectors. It's possible that it hasn't been<br>
>>> enabled for that glyph style.<br>
>>> -Dave<br>
>>><br>
>>><br>
>>> On Friday, November 7, 2014, Xi Chang <<a href="mailto:xi.chang01@gmail.com">xi.chang01@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Thanks Dave,<br>
>>>><br>
>>>> Anyway, nothing happens when I did as follows (the results are still the<br>
>>>> same):<br>
>>>><br>
>>>> res@gsnScalarContour = True ; vectors over scalars<br>
>>>> res@vcRefMagnitudeF = 20.0 ; vec magnitude<br>
>>>> res@vcRefLengthF = 0.06 ; size of ref vector<br>
>>>> res@vcLineArrowColor = "black" ; white vectors<br>
>>>> res@vcMinDistanceF = 0.025 ; thins arrows near<br>
>>>> pole<br>
>>>> res@vcGlyphStyle = "CurlyVector" ; turns on curley<br>
>>>> vectors<br>
>>>> res@vcMinMagnitudeF = 5<br>
>>>><br>
>>>> On Fri, Nov 7, 2014 at 12:25 AM, David Brown <<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>> wrote:<br>
>>>>><br>
>>>>><br>
>>>>> <a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinMagnitudeF" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinMagnitudeF</a><br>
>>>>><br>
>>>>> On Thu, Nov 6, 2014 at 4:23 PM, Xi Chang <<a href="mailto:xi.chang01@gmail.com">xi.chang01@gmail.com</a>> wrote:<br>
>>>>> > Hallo, is there any trick to display wind vectors only for those<br>
>>>>> > whose<br>
>>>>> > magnitude greater than XXX m/s, bellow this values are not plotted.<br>
>>>>> > Im using<br>
>>>>> > a function called gsn_csm_vector.<br>
>>>>> ><br>
>>>>> > Thanks<br>
>>>>> ><br>
>>>>> > _______________________________________________<br>
>>>>> > ncl-talk mailing list<br>
>>>>> > List instructions, subscriber options, unsubscribe:<br>
>>>>> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>>> ><br>
>>>><br>
>>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
</div></div></blockquote></div><br></div>