[GRASS-windows] Fwd: Re: mapcalc/mapcalculator in python script

Glynn Clements glynn at gclements.plus.com
Thu Feb 3 18:53:29 EST 2011


Johannes Radinger wrote:

> I am running excactly:
> > grass.mapcalc("$upstream_shreve = if(${upstream_part},${shreve})",
> >                   upstream_shreve = options['upstream_shreve'],
> >                   upstream_part = options['upstream_part'],
> >                   shreve = options['shreve'])
> 
> and according to users this code should work but it doesn't. I get following answer from the python shell:

> KeyError: 'upstream_shreve'

The "options" dictionary doesn't have an entry for "upstream_shreve".
This is unrelated to the mapcalc() function.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-windows mailing list