[GRASS-user] some issues with r.mapcalc logical AND

Carlos Grohmann carlos.grohmann at gmail.com
Mon Jul 2 03:43:41 PDT 2012


Hi all,

I'm having some issues with r.mapcalc.

For instance, this works:

if(mapA, 1, null())

which could be read as " if mapA is True, then 1, else null()"

but this doesn't:

if(mapA && mapB, 1, null())

which, to me, could be read as " if mapA is True AND mapB is True (at
the same place), then 1, else null()"

this gives me:
Incorrect argument types to function and()
Parse error


can I use these True/False conditions?


best

Carlos



-- 
Prof. Carlos Henrique Grohmann
Institute of Geosciences - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
________________
Can’t stop the signal.


More information about the grass-user mailing list