[GRASS-dev] Popen and r.mapcalc, pygrass' implications

Vaclav Petras wenzeslaus at gmail.com
Thu Aug 14 06:26:36 PDT 2014


On Thu, Aug 14, 2014 at 7:08 AM, Glynn Clements <glynn at gclements.plus.com>
wrote:

> > In [2]: cmd_list = ['r.mapcalc', 'expression="elev100=elevation*100"',
> '--o']
>
> This is wrong. The double-quote characters shouldn't be there.


It took me some time to realize that quotes in

r.mapcalc expression="a = b"

are processed by shell and that the above is equal to

r.mapcalc "expression=a = b"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140814/ad977408/attachment.html>


More information about the grass-dev mailing list