[GRASS-user] Tip on using r.mapcalcl

Helena Herrera helenaherrera1980 at gmail.com
Fri Jul 8 10:22:52 EDT 2011


Greetings
I have 4 bands (B1;B2,B3;B4) all with values >0 except in a few pixels where
I have nulls.
I want to create a layer where I have 1 if at least I have 1 number and
nulls where I don't have a single value
I have tried this
if (B1>=0 || B2>=0 || B3>=0 || B4>=0, 1,null()) but I got null in pixels
where I have information for at least 2 bands.
any tip on how can I do this?
Thanks
Helena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110708/16fcddc9/attachment.html


More information about the grass-user mailing list