[GRASS-user] Scripting Python from inside GRASS

Glynn Clements glynn at gclements.plus.com
Sun May 29 11:47:49 EDT 2011


Tim Michelsen wrote:

> reading
> http://grass.osgeo.org/wiki/GRASS_and_Python
> 
> I may still ask:
> * is there a IPython-enhanced Python scripting console withing GRASS?

No.

> * What is the preferrred way to script grass from Python?

Similar to shell scripts, but there's a Python module (grass.script)
which provides convenient interfaces to the most common commands.

See any of the scripts in 7.0 for reference.

> * Do I need to be inside GRASS shell to script in order to have all
> environment parameters set?

Either that, or you need to set up the environment manually.

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


More information about the grass-user mailing list