[GRASS-user] Simulation in grass 6

Rainer M. Krug Rainer at krugs.de
Tue Sep 25 10:32:26 EDT 2007


Glynn Clements wrote:
> 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).
> 

Thanks a lot - I will take a look at them.

-- 
NEW EMAIL ADDRESS AND ADDRESS:

Rainer.Krug at uct.ac.za

RKrug at sun.ac.za WILL BE DISCONTINUED END OF MARCH

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

Tel:		+27 - (0)21 650 5776 (w)
Fax:		+27 - (0)86 516 2782
Fax:		+27 - (0)21 650 2440 (w)
Cell:		+27 - (0)83 9479 042

Skype:		RMkrug

email:	Rainer.Krug at uct.ac.za
       	Rainer at krugs.de




More information about the grass-user mailing list