[GRASS-dev] eval option in r.mapcalc in a python script

Maris Nartiss maris.gis at gmail.com
Thu Jan 14 13:19:05 PST 2016


I'm sorry, I haven't had time to update r.mapcalc documentation to
clarify things in a nice way. Here's part of discussion on this topic:
https://lists.osgeo.org/pipermail/grass-dev/2015-November/077491.html

Modifying rasters in-place is not possible also because raster library
does not support it. It would also posses a problem for r.mapcalc, as
it supports neighbour operator - what should be an outcome if you
request data from -1 row (the one you just modified)?

2016-01-14 14:05 GMT+02:00 Paulo van Breugel <p.vanbreugel at gmail.com>:
>> ISTR that modifying the contents of a map in-place might be possible, but
>> not recommended.
>
> I think your solution below is perfectly fine, but out of curiosity, and to
> get a better grasp of the possible pitfalls, what is the reason the above
> in-place modification is not recommended?


More information about the grass-dev mailing list