<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Thanks Jeff. That worked!</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Brian</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org]
<b>On Behalf Of </b>Jeff Duda<br>
<b>Sent:</b> January-23-13 2:41 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Omit Missing Values</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom:12.0pt">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</p>
<div>
<p class="MsoNormal">On Wed, Jan 23, 2013 at 12:01 PM, Brian Walsh <<a href="mailto:brianw@provair.com" target="_blank">brianw@provair.com</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi Jeff,</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">It doesn’t appear that worked. Where does the 98-uogrddsl come from?</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Brian</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">
<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>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Brian,<br>
Use the maskout function.<br>
'define ucurrent = maskout(uogrdds,98-uogrdds)'<br>
'define vcurrent = maskout(vogrdds,98-vogrdds)'<br>
'e = mag(ucurrent,vcurrent)'<br>
'd e'<br>
<br>
I think that should work. Let me know if it doesn't.<br>
<br>
Jeff Duda</p>
<div>
<p class="MsoNormal" style="">On Wed, Jan 23, 2013 at 11:32 AM, Brian Walsh <<a href="mailto:brianw@provair.com" target="_blank">brianw@provair.com</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal" style="">Hello,</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">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" style=""> </p>
<p class="MsoNormal" style="">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" style=""> </p>
<p class="MsoNormal" style=""> 'define ucurrent=const(uogrddsl, -99, -u)'</p>
<p class="MsoNormal" style=""> 'define vcurrent=const(vogrddsl, -99, -u)'</p>
<p class="MsoNormal" style=""> 'e=mag('ucurrent','vcurrent')'</p>
<p class="MsoNormal" style=""> 'd e'</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">But, no luck. Any ideas?</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">Thanks</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">Brian</p>
<p class="MsoNormal" style=""> </p>
</div>
<p class="MsoNormal" style=""> <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" style=""><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>
<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>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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></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>
<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).
</body>
</html>