<div dir="ltr">Hi Deninis,<div><br></div><div>I used your first suggestion.<br></div><div><br></div><div>Thanks a lot!</div><div><br></div><div>Guilherme. </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-07-24 18:32 GMT-03:00 Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>Not sure I understand:<br><br></div> x can be *any* dimensionality<br><br></div><div> xlimit = 100<br></div> x = where(x.lt.-xlimit, -xlimit, x)<br></div><div> x = where(<a href="http://x.gt" target="_blank">x.gt</a>. xlimit, xlimit, x)</div>
<div><br></div>or, use the NCL syntax 'clipping' operators<br><br></div><div> x = x > -xlimit<br></div><div> x = x < xlimit<br></div><div><br></div> x = <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">
On Thu, Jul 24, 2014 at 3:09 PM, Guilherme Martins <span dir="ltr"><<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr"><div><div>Hi all,</div><div><br></div><div>I'd like to obtain some tips about a question I have.</div><div><br></div><div>I have positive and negative values (for example, -300 up to 300), but I want to limit the values for a range of values, for example, -100 up to 100.</div>
<div><br></div><div>I used the "where" function but I didn't obtain what I want.</div><div><br></div><div>Does anyone has some tip?</div><div><br></div><div>What I want:</div><div><br></div><div>where </div>
<div><br></div><div>value(columnxrow) .gt. 100, 100, value(columnxrow) </div><div>value(columnxrwm) .lt. -100, -100, value(columnxrwm)</div><div><br></div><div>My dataset is : column x row</div><div><br></div><div>Thanks a lot,</div>
<div><br></div><div>Guilherme.</div></div><span><font color="#888888"><div><br></div><div><br></div>-- <br><div dir="ltr"><div><a href="https://sites.google.com/site/jgmsantos/" target="_blank">https://sites.google.com/site/jgmsantos/</a><br>
<div><div>
<div></div></div></div></div><div><br></div></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><a href="https://sites.google.com/site/jgmsantos/" target="_blank">https://sites.google.com/site/jgmsantos/</a><br><div><div><div></div></div>
</div></div><div><br></div></div>
</div>