[GRASS-user] Simulation in grass 6
Glynn Clements
glynn at gclements.plus.com
Tue Sep 25 08:01:44 EDT 2007
Hamish wrote:
> Hamish:
> > > see http://grass.gdf-hannover.de/wiki/GRASS_and_Python
> Rainer:
> > Looking at the document, I must say it seems to be a usefull approach to
> > use Python - and it is crossplatform. One thing which I did not see that
> > quickly is how I can execute grass commands from python - I guess it is
> > easy, but I didn't find it when I looked at the document.
For information on running external commands from Python, see:
http://docs.python.org/lib/module-subprocess.html
Avoid using the older os.* functions. Section 17.1.3 lists equivalents
using the Popen() interface, which is more robust (particularly on
Windows).
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list