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:
[EMAIL PROTECTED]
[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser