<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">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt;</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 &quot;curly vectors are more akin<br>
to streamlines&quot;. 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 &quot;where&quot; 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 &lt;<a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a>&gt; wrote:<br>
&gt; I&#39;m not Dave, but I&#39;ll go ahead and say &quot;no&quot; - CurlyVectors are more akin to<br>
&gt; streamlines in that they don&#39;t exist at any one &quot;point&quot; but rather get<br>
&gt; longer and turn with the wind as magnitude increases. You can&#39;t simply turn<br>
&gt; off the CurlyVector in some areas as it would break up the streamline by<br>
&gt; falling below an arbitrary magnitude. vcMinMagnitude seems to look the best<br>
&gt; with either LineArrow or FillArrow glyphs, in my experience.<br>
&gt;<br>
&gt; Good luck!<br>
&gt;<br>
&gt;<br>
&gt; Kyle<br>
&gt;<br>
&gt; ----------------------------------------<br>
&gt; Kyle S. Griffin<br>
&gt; Department of Atmospheric and Oceanic Sciences<br>
&gt; University of Wisconsin - Madison<br>
&gt; Room 1421<br>
&gt; 1225 W Dayton St, Madison, WI 53706<br>
&gt; Email: <a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a><br>
&gt;<br>
&gt; On Wed, Dec 10, 2014 at 7:04 AM, Xi Chang &lt;<a href="mailto:xi.chang01@gmail.com">xi.chang01@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Dave, HI NCL,<br>
&gt;&gt;<br>
&gt;&gt; so, is there any way around how to use &quot; res@vcMinMagnitudeF  &quot; for<br>
&gt;&gt; &quot;CurlyVector&quot; mode?<br>
&gt;&gt; Thanks<br>
&gt;&gt;<br>
&gt;&gt; chang.<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Nov 7, 2014 at 3:22 PM, David Brown &lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Try turning off the curly vectors. It&#39;s possible that it hasn&#39;t been<br>
&gt;&gt;&gt; enabled for that glyph style.<br>
&gt;&gt;&gt;  -Dave<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Friday, November 7, 2014, Xi Chang &lt;<a href="mailto:xi.chang01@gmail.com">xi.chang01@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks Dave,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Anyway, nothing happens when I did as follows (the results are still the<br>
&gt;&gt;&gt;&gt; same):<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;   res@gsnScalarContour      = True              ; vectors over scalars<br>
&gt;&gt;&gt;&gt;   res@vcRefMagnitudeF       = 20.0              ; vec magnitude<br>
&gt;&gt;&gt;&gt;   res@vcRefLengthF          = 0.06              ; size of ref vector<br>
&gt;&gt;&gt;&gt;   res@vcLineArrowColor      = &quot;black&quot;           ; white vectors<br>
&gt;&gt;&gt;&gt;   res@vcMinDistanceF        = 0.025              ; thins arrows near<br>
&gt;&gt;&gt;&gt; pole<br>
&gt;&gt;&gt;&gt;   res@vcGlyphStyle          = &quot;CurlyVector&quot;     ; turns on curley<br>
&gt;&gt;&gt;&gt; vectors<br>
&gt;&gt;&gt;&gt;   res@vcMinMagnitudeF       = 5<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Fri, Nov 7, 2014 at 12:25 AM, David Brown &lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; <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>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Thu, Nov 6, 2014 at 4:23 PM, Xi Chang &lt;<a href="mailto:xi.chang01@gmail.com">xi.chang01@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt; &gt; Hallo, is there any trick to display wind vectors only for those<br>
&gt;&gt;&gt;&gt;&gt; &gt; whose<br>
&gt;&gt;&gt;&gt;&gt; &gt; magnitude greater than XXX m/s, bellow this values are not plotted.<br>
&gt;&gt;&gt;&gt;&gt; &gt; Im using<br>
&gt;&gt;&gt;&gt;&gt; &gt; a function called gsn_csm_vector.<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; Thanks<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; &gt; ncl-talk mailing list<br>
&gt;&gt;&gt;&gt;&gt; &gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt;&gt;&gt;&gt; &gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ncl-talk mailing list<br>
&gt;&gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;<br>
</div></div></blockquote></div><br></div>