[GRASS-dev] [GRASS-SVN] r52301 - grass/branches/develbranch_6/lib/python

Martin Landa landa.martin at gmail.com
Wed Jul 4 04:47:05 PDT 2012


2012/7/4  <svn_grass at osgeo.org>:
> Author: hamish
> Date: 2012-07-04 03:52:22 -0700 (Wed, 04 Jul 2012)
> New Revision: 52301
>
> Modified:
>    grass/branches/develbranch_6/lib/python/raster.py
> Log:
> backport mapcalc_start() from trunk

[...]

> +
> +    return start_command('r.mapcalc', expression = e,
> +                        quiet = quiet,
> +                        verbose = verbose,
> +                        overwrite = overwrite)

this will not work in G6 (r.mapcalc doesn't use parser)

>>> g.mapcalc_start('x=1')
D1/1: grass.script.core.start_command(): r.mapcalc expression=x=1

Result is always raster map called 'expression'.

Martin

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


More information about the grass-dev mailing list