<DIV>Hi Rafael,</DIV>
<DIV> </DIV>
<DIV>Before your posting, I used maskout and const combined taking five steps to get what I need. with your method, one step and I got the same answer.</DIV>
<DIV> </DIV>
<DIV>Smart! Thank you very much.</DIV>
<DIV> </DIV>
<DIV>Frank</DIV>
<DIV><BR><BR><B><I>Rafael Rosolem <rosolem@GMAIL.COM></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">hi,<BR><BR>supose you have two thresholds the lower one, tlo, and the upper one,<BR>thi, and you want to have tlo < var < thi, then you'll need to set the<BR>maskout as follows:<BR><BR>aa=maskout(var,-(var-tlo)*(var-thi))<BR><BR>the minus sign at the beginning of the statement guarantees you that you<BR>are doing tlo < var < thi, otherwise you would be doing tlo > var < thi.<BR><BR>try it out!<BR><BR>good luck.<BR><BR>R.<BR><BR><BR>JL Lee wrote:<BR><BR>>Dear All,<BR>><BR>>Is there anyone that have experience on doing average by cutting a<BR>>threshold value without cutting off points that are "zero".<BR>><BR>>For example, aa=maskout(var,var-2.); this will make all var to be missing<BR>>value including points that are "zero". Is there anyway that I can keep<BR>>points that are zero and maskout points that are 0 < var <
2?<BR>><BR>><BR>>Many Thanks.<BR>><BR>><BR>><BR></BLOCKQUOTE><p>
<hr size=1>Do You Yahoo!?<br> Yahoo! Small Business - <a href="http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/">Try our new Resources site!</a>