[GRASS-dev] grass7 - python script - moving window: how to simplify/accelerate r.mapcalc?

Glynn Clements glynn at gclements.plus.com
Sun Jun 1 20:14:20 PDT 2014


Helmut Kudrnovsky wrote:

> > Can you try replacing the grass.mapcalc() call with:
> >	grass.write_command('r.mapcalc', file = '-', stdin = expr)
> 
> grass.write_command('r.mapcalc', file = '-', stdin = expr)
> 0
> 
> => calculation done

r60662 modifies the mapcalc() and mapcalc_start() functions to pass
the expression on stdin rather than the command line.

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


More information about the grass-dev mailing list