[GRASS-user] map algebra logical operators on DCELL rasters not admitted? maybe docs should outline it

Paulo van Breugel p.vanbreugel at gmail.com
Mon Oct 19 08:52:03 PDT 2015


On Mon, Oct 19, 2015 at 5:18 PM, G. Allegri <giohappy at gmail.com> wrote:

> Doing a logical operation with a DCELL raster within an if(x,a) statement
> produces an error: "Incorrect argument types to function bitand()".
> This doesn't seem to be described inside the docs, is it?
>

That sounds like a bug to me. I just tried it out and it runs fine (using
GRASS 7.1). What GRASS version are you using?


>
> When the if() function is described it only states its behaviour in case
> of NULL, 0 or "otherwise" values.
> It works correctly if the maps are CELL (i.e. e value not eqaul 0 is
> treated correctly whatever it is) and it's quite confusing for users having
> a different behaviour, and sepcifically an error, in case of floating point
> rasters, don't you think?
>
> Regards,
> giovanni
>
> --
> Giovanni Allegri
> http://about.me/giovanniallegri
> Gis3W - http://gis3w.it
> Ikare - http://ikare.it
> Twitter: https://twitter.com/_giohappy_
> blog: http://blog.spaziogis.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20151019/538cd759/attachment.html>


More information about the grass-user mailing list