Oh, I misread the value.  My mistake.  The mask should be uogrddsl+98 instead.  You can read the documentation on the maskout function (<a href="http://www.iges.org/grads/gadoc/gradfuncmaskout.html">http://www.iges.org/grads/gadoc/gradfuncmaskout.html</a>) for a full description of how the function works.<br>
<br>Jeff<br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 12:01 PM, Brian Walsh <span dir="ltr">&lt;<a href="mailto:brianw@provair.com" target="_blank">brianw@provair.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-CA">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Jeff,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It doesn’t appear that worked. Where does the 98-uogrddsl come from?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Brian</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US"> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>]
<b>On Behalf Of </b>Jeff Duda<br>
<b>Sent:</b> January-23-13 2:19 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Omit Missing Values</span></p><div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Brian,<br>
Use the maskout function.<br>
&#39;define ucurrent = maskout(uogrdds,98-uogrdds)&#39;<br>
&#39;define vcurrent = maskout(vogrdds,98-vogrdds)&#39;<br>
&#39;e = mag(ucurrent,vcurrent)&#39;<br>
&#39;d e&#39;<br>
<br>
I think that should work.  Let me know if it doesn&#39;t.<br>
<br>
Jeff Duda</p>
<div>
<p class="MsoNormal">On Wed, Jan 23, 2013 at 11:32 AM, Brian Walsh &lt;<a href="mailto:brianw@provair.com" target="_blank">brianw@provair.com</a>&gt; wrote:</p>
<div>
<div>
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m plotting ocean currents and the grib file contains values of -99 for grid points near land. So, when I try to plot the combined current speed/direction (u, v), it has values very high near and over land. I can use basemap to
 cover the land, but there are grid points near land and over water that are still showing (see attached sample image where red is the extreme/missing values).
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I think the const command is what I need, but I’m not sure how to set this up when I want to combine the u, v parameters. I tried:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">        &#39;define ucurrent=const(uogrddsl, -99, -u)&#39;</p>
<p class="MsoNormal">        &#39;define vcurrent=const(vogrddsl, -99, -u)&#39;</p>
<p class="MsoNormal">        &#39;e=mag(&#39;ucurrent&#39;,&#39;vcurrent&#39;)&#39;</p>
<p class="MsoNormal">        &#39;d e&#39;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">But, no luck. Any ideas?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Brian</p>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal"> <br>
This email and any attached files are intended solely for the use of the individual(s) and copied addressee(s) and may contain privileged and/or confidential information. Any distribution, use or copying by any means of this information is strictly prohibited.
 If you are not the intended recipient(s), please notify the sender by telephone or return the email and delete the material from your system(s).
</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Jeff Duda<br>
Graduate research assistant<br>
University of Oklahoma School of Meteorology<br>
Center for Analysis and Prediction of Storms</p>
</div></div></div><div><div class="h5">
 <br>
This email and any attached files are intended solely for the use of the individual(s) and copied addressee(s) and may contain privileged and/or confidential information. Any distribution, use or copying by any means of this information is strictly prohibited.
 If you are not the intended recipient(s), please notify the sender by telephone or return the email and delete the material from your system(s).
</div></div></div>

<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>