<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>NCLers</p>
<p>I have need in NCL to set a comparison type based on a subroutine
input. That is, if the input is "0", then I want to check if
something is .ge. to a number. If it is "0", I want to check if it
is .le. <br>
</p>
<p>My 'if' block is long so I would like to avoid repeating that.
Any ideas?<br>
</p>
<p> if(x1(i)<b>.ge.</b>xvalue)then</p>
<p> etc.. many lines<br>
</p>
<p>end if</p>
<p>I am looking for runs, by the way. I saw some NCL runs
subroutines but they don't quite do what I need.</p>
<p>Thanks</p>
<p>Cathy Smith</p>
<p>(long live NCL!)<br>
</p>
<pre class="moz-signature" cols="72">--
----------------------------------------
NOAA PSL and CU CIRES
<a class="moz-txt-link-freetext" href="https://psl.noaa.gov/people/cathy.smith/">https://psl.noaa.gov/people/cathy.smith/</a>
Emails about data/webpages may get quicker responses by emailing
<a class="moz-txt-link-abbreviated" href="mailto:psl.data@noaa.gov">psl.data@noaa.gov</a></pre>
</body>
</html>