[GRASS-user] renaming a raster map in a Python Script

Glynn Clements glynn at gclements.plus.com
Wed Feb 16 12:11:55 EST 2011

Monica Buescu wrote:

> I have a GRASS Python Script  where I create a raster map and I want to
> rename it. How can I rename a raster map in a GRASS Python Script?

	import grass.script as grass

	grass.run_command('g.rename', rast = (oldname, newname))

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-user mailing list