<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Using the logical expressions in the new version of GrADS, the command would look like this:
<div>‘d maskout(mytemp,mytemp<0)’</div>
<div><br>
</div>
<div>But if you don’t have the new version, try this instead:</div>
<div>‘d maskout(mytemp,0-mytemp)’</div>
<div><br>
</div>
<div>—Jennifer</div>
<div><br>
<div><br>
<div>
<div>On Mar 1, 2017, at 10:21 AM, Becker, Bernd <<a href="mailto:bernd.becker@metoffice.gov.uk">bernd.becker@metoffice.gov.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
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
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.font
        {mso-style-name:font;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal" style="background:white"><span class="font"><span style="font-size:9.5pt;font-family:"Tahoma","sans-serif";color:#222222">'define mytemp2 = const(const(mytemp,1),0.0,-u)'</span></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p></o:p></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"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<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"">
<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org">mailto:gradsusr-bounces@gradsusr.org</a>]
<b>On Behalf Of </b>d.nairn<br>
<b>Sent:</b> 01 March 2017 14:27<br>
<b>To:</b> GrADS Forum<br>
<b>Subject:</b> [gradsusr] Maskout<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Tahoma","sans-serif";color:#222222">Hello<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Tahoma","sans-serif";color:#222222"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Tahoma","sans-serif";color:#222222">I have this maskout command working for only displaying temperatures above 20(c)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Tahoma","sans-serif";color:#222222"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span class="font"><span style="font-size:9.5pt;font-family:"Tahoma","sans-serif";color:#222222">'define mytemp2 = const(const(maskout(mytemp,mytemp-20),1),0.0,-u)'</span></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span class="font"><span style="font-size:9.5pt;font-family:"Tahoma","sans-serif";color:#222222">I cannot figure out how to rewrite that command to display only temperatures below 0(c)</span></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span class="font"><span style="font-size:9.5pt;font-family:"Tahoma","sans-serif";color:#222222">Can anybody help me out?</span></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span class="font"><span style="font-size:9.5pt;font-family:"Tahoma","sans-serif";color:#222222">Thanks</span></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p></o:p></span></p>
</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</body>
</html>