<div dir="ltr">Ok,,well then, I will not use the "curly'" mode for my journal submission to AMS :(<div style>I hope that NCL team can figure out this issue soon. Thank you,</div><div style><br></div><div style>Chang.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 6:39 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">Well, again, without seeing your code or your plot, it is hard to say<br>
for sure, but that is probably because of the different nature of the<br>
algorithm used to draw curly vectors vs. regular straight vectors.<br>
Even though a curly vector starts at a particular grid point, its<br>
progress is influenced by the values at the nearby grid points. The<br>
approach I suggested yesterday makes grid points below the minimum<br>
value into missing value areas, potentially causing more vectors to be<br>
eliminated than you would like, or changing the way they progress. So<br>
I agree that it is not really the same behavior as vcMinMagnitudeF<br>
would have. Unfortunately I do not know of any other way around your<br>
difficulty. Sorry.<br>
-dave<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Dec 10, 2014 at 11:47 PM, Xi Chang <<a href="mailto:xi.chang01@gmail.com">xi.chang01@gmail.com</a>> wrote:<br>
> Thanks guys,<br>
> Im using this a work-around prior to plot the vector,<br>
><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>
> but the results are not the same as the use of res@vcMinMagnitudeF<br>
> thanks<br>
><br>
> On Wed, Dec 10, 2014 at 8:47 PM, David Brown <<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>> wrote:<br>
>><br>
>> 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>
>><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<br>
>> > 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<br>
>> > 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<br>
>> > 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<br>
>> >>>> the<br>
>> >>>> same):<br>
>> >>>><br>
>> >>>> res@gsnScalarContour = True ; vectors over<br>
>> >>>> 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>
>> >>>>><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>><br>
>> >>>>> 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<br>
>> >>>>> > 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>
><br>
><br>
</div></div></blockquote></div><br></div>