<div dir="ltr">Since this is a 1-thing, 2-thing, everything else situation, three nested const(mask()) functions should take care of it...I think.<div><br></div><div>mask 1: const(maskout(dtemp-25),0)</div><div>mask 2: const(maskout(22-dtemp),6)</div><div><br></div><div>A = const((const(maskout(const(maskout(dtemp-25),0),22-temp),6),-u,2)</div><div><br></div><div>...or something similar to that. I'm not sure you actually need the outermost maskout(). Play around with the individual mask pieces first, then try nesting a few of them til you get the gist of what you need to do.</div><div><br></div><div>Jeff Duda</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 13, 2019 at 2:13 PM AMS EmsiWx Bytča <<a href="mailto:emsiwx@pocasie-bytca.sk">emsiwx@pocasie-bytca.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
<br>
<br>
I am going crazy combining const/maskout to get what I need.<br>
<br>
I need to set A according the following:<br>
<br>
A= 0 when T850-T500 >25<br>
<br>
A= 2 when T850-T500 22-25<br>
<br>
A= 6 when T850-T500 <22<br>
<br>
<br>
Would like to ask any master of const/maskout for help.<br>
<br>
<br>
Thank you very much in advance.<br>
<br>
<br>
Marian<br>
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Division<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div>