<div dir="ltr">Brandon,<div>In addition to using maskout and const, If you are using opengrads, the user defined function &quot;if&quot; from Ben-Jei Tsuang&#39;s Extensions collection, will accomplish what you need:  </div><div><br></div><div><a href="http://opengrads.org/doc/udxt/libbjt/" target="_blank">http://opengrads.org/doc/udxt/libbjt/</a><br></div><div><br></div><div>See link for syntax and example.  If you have more questions, I&#39;ll be happy to assist.</div><div>Stephen Mc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 28, 2015 at 8:53 PM, Brandon Schmidt <span dir="ltr">&lt;<a href="mailto:admin@wilmingtonwx.com" target="_blank">admin@wilmingtonwx.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 dir="ltr">GrADS users,<div><br></div><div>I&#39;m currently trying to display a significant tornado parameter map but I&#39;ve reached an obstacle. One of the terms in the STP equation requires it&#39;s variable values to be within a specific range. The term is &quot;((2000 - sbLCL) / 1000)&quot; using the variable sbLCL. When sbLCL is below 1000, it should be set to 1000. When sbLCL is above 2000, it should be set to 2000 (e.x. 130 should become 1000, 1350 should remain 1350, and 4000 should become 2000).</div><div><br></div><div>I know this calculation will definitely involve manipulation with the <i>maskout()</i> and/or <i>const()</i> functions but I have no idea where to begin. Is there another work-around technique that I&#39;m not seeing?</div><div><br></div><div>Any help would be greatly appreciated...Thanks! - Brandon</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></div>