[GRASS-user] What's wrong with this r.mapcalc usage?
Markus Neteler
neteler at osgeo.org
Thu Jan 31 03:31:08 EST 2008
On Jan 31, 2008 10:11 AM, Glynn Clements <glynn at gclements.plus.com> wrote:
...
> The behaviour of && and || is consistent with most other infix
> operators operators, insofar as they return null if either argument is
> null.
>
> In newer versions of r.mapcalc (I don't recall exactly which
> versions), you can use the &&& and ||| operators, which behave like &&
> and || except that they follow the common boolean equivalences:
>
> x &&& false = false
> false &&& x = false
>
> x ||| true = true
> true ||| x = true
>
> even when x is null.
For the record: You kindly implemented that in May 2006:
http://lists.osgeo.org/pipermail/grass-dev/2006-May/022848.html
Markus
More information about the grass-user
mailing list