[GRASS-dev] Help needed Accessing Grass Modules through python

Martin Landa landa.martin at gmail.com
Mon Sep 14 12:15:53 EDT 2009


Hi,

2009/9/14 Glynn Clements <glynn at gclements.plus.com>:

[...]

> The existing grass.mapcalc() function won't work in 6.4. That function
> shouldn't have been backported from 7.0, as it requires the 7.0
> version of r.mapcalc (which uses G_parser()).
>
> It needs something like:
>
> -    if run_command('r.mapcalc', expression = e) != 0:
> +    if write_command('r.mapcalc', stdin = e) != 0:
>
> Either that, or use call(['r.mapcalc', expression]).

right, hopefully fixed in r39203.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list