maskout / changing values

Jean Pierre Arabonis arabonis at EGS.UCT.AC.ZA
Fri Nov 9 10:39:36 EST 2007


Hi everyone
    I have an ice coverage dataset that has values from 0-2.28 of which
values from 0-1.28 are valid ice percentages, however the values from 1
- 1.28 all correspond to 100% and need to be assigned the value 1.
    I have tried to use a combination of maskout and const to achieve
this and tried to adapt an example to achieve this but I'm not getting it.

 define newice =
const(const(maskout(icecmsl,(maskout(icecmsl,icecmsl+1)-1.28)),1),0,-u)

    Could someone please poit me in the right direction.

    Many thanks
       Jean Pierre


--
Jean Pierre Arabonis
arabonis at egs.uct.ac.za
Tel 021 780 1021 cell 084 401 1365
This email is 100% Microsoft Free



More information about the gradsusr mailing list