[GRASS-user] python scripting: changing region settings reiases error

Glynn Clements glynn at gclements.plus.com
Tue Jan 18 19:25:30 EST 2011


Carlos Grohmann wrote:

> Now, I'm working on a python script, and at some point I want to
> resample the elevation raster with r.resample.rst.
> 
> the problem is, this raises an error:
> 
> >>> grass.run_command("r.resamp.rst", input='elev_filter', elev='newdem', ew_res=newres, ns_res=newres, slope=slope, aspect=aspect, overwrite=True, verbose=True)
> Processing all selected output files will require
> 3690732 bytes of disk space for temp files.
> Temporarily changing the region to desired resolution ...
> ERROR: Input window changed while maps are open for read

This is an issue with r.resamp.rst rather than Python scripting. It's
currently waiting for someone who understands the module to update it
for 7.0.

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


More information about the grass-user mailing list