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

Greetings

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?

Thanks
Monica

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@gclements.plus.com>