<div dir="ltr">I am using masking and all is working as should. What is your error?<div><br></div><div>example:</div><div><div>....</div><div>gridv=addfile(hisfile, "r")</div><div>mu = gridv->u(start_record:stop_record:timestep,:,:)</div><div>mv = gridv->v(start_record:stop_record:timestep,:,:)</div></div><div>; mask</div><div>mu = mask(mu,(mu.lt.-1e5).or.(mu.gt.1e5),False)</div><div>mv = mask(mv,(mv.lt.-1e5).or.(mv.gt.1e5),False)</div><div> </div><div><div> mu@lon2d=lon2d</div><div> mu@lat2d=lat2d</div><div> mv@lon2d=lon2d</div><div> mv@lat2d=lat2d</div></div><div><br></div><div><br></div><div>Cheers,</div><div>Ivica</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 31, 2018 at 6:38 AM,  <span dir="ltr"><<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send ncl-talk mailing list submissions to<br>
        <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:ncl-talk-request@ucar.edu">ncl-talk-request@ucar.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ncl-talk-owner@ucar.edu">ncl-talk-owner@ucar.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ncl-talk digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. plot masked vectors (Michele Petrini - CITG)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 30 May 2018 22:38:37 +0000<br>
From: Michele Petrini - CITG <<a href="mailto:M.Petrini@tudelft.nl">M.Petrini@tudelft.nl</a>><br>
To: "<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br>
Subject: [ncl-talk] plot masked vectors<br>
Message-ID: <<a href="mailto:C26FA7BA-202E-4BB5-A91F-78B8B4E644F1@tudelft.nl">C26FA7BA-202E-4BB5-A91F-<wbr>78B8B4E644F1@tudelft.nl</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear helpdesk,<br>
<br>
I am trying to plot velocity vectors over a contour (+other stuff, see attached pdf).<br>
<br>
I have a question, is there a way to mask out the small vectors and leave only velocity vectors exceeding some threshold (let?s say 100 m/yr)?<br>
<br>
If I try to mask the u/v variables, I get an error.<br>
<br>
Looking on the internet, I see that there is someone suggesting to overlay two vector contours, but the procedure seems to be a little bit complicated, and I wonder if there exists a simpler way,..<br>
<br>
thanks!<br>
Michele<br>
<br>
<br>
******************************<wbr>******************************<wbr>******<br>
Michele Petrini, PhD<br>
<br>
Department of Geoscience and Remote Sensing, TUDelft<br>
Delft, The Netherlands<br>
<br>
<a href="mailto:M.Petrini@tudelft.nl">M.Petrini@tudelft.nl</a><mailto:<a href="mailto:M.Petrini@tudelft.nl">M.<wbr>Petrini@tudelft.nl</a>><br>
+39 3398367372<br>
michele.petrins (Skype alias)<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180530/4fc75707/attachment.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>pipermail/ncl-talk/<wbr>attachments/20180530/4fc75707/<wbr>attachment.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: data_location.pdf<br>
Type: application/pdf<br>
Size: 336030 bytes<br>
Desc: data_location.pdf<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180530/4fc75707/attachment.pdf" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>pipermail/ncl-talk/<wbr>attachments/20180530/4fc75707/<wbr>attachment.pdf</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br>
<br>
------------------------------<br>
<br>
End of ncl-talk Digest, Vol 174, Issue 45<br>
******************************<wbr>***********<br>
</blockquote></div><br></div>