Threshold Value
J Lee
y2k_ww at YAHOO.COM
Tue May 31 15:18:15 EDT 2005
Hi Rafael,
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.
Smart! Thank you very much.
Frank
Rafael Rosolem <rosolem at GMAIL.COM> wrote:
hi,
supose you have two thresholds the lower one, tlo, and the upper one,
thi, and you want to have tlo < var < thi, then you'll need to set the
maskout as follows:
aa=maskout(var,-(var-tlo)*(var-thi))
the minus sign at the beginning of the statement guarantees you that you
are doing tlo < var < thi, otherwise you would be doing tlo > var < thi.
try it out!
good luck.
R.
JL Lee wrote:
>Dear All,
>
>Is there anyone that have experience on doing average by cutting a
>threshold value without cutting off points that are "zero".
>
>For example, aa=maskout(var,var-2.); this will make all var to be missing
>value including points that are "zero". Is there anyway that I can keep
>points that are zero and maskout points that are 0 < var < 2?
>
>
>Many Thanks.
>
>
>
---------------------------------
Do You Yahoo!?
Yahoo! Small Business - Try our new Resources site!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20050531/c44da406/attachment.html
More information about the gradsusr
mailing list