[GRASS-user] some issues with r.mapcalc logical AND
Glynn Clements
glynn at gclements.plus.com
Mon Jul 2 07:11:03 PDT 2012
Carlos Grohmann wrote:
> 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?
Both arguments need to be integers.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list