[GRASS-dev] question about arguments to methods in GRASS Python library

Michael Barton Michael.Barton at asu.edu
Thu Jun 30 16:03:04 EDT 2011


When I call the following method, I get an error with the keyword "from". I suspect that it is because "from" is a reserved Python keyword. How do I specify it so that it work as a GRASS command keyword?

grass.parse_command('v.distance', to = 'bugsites', from = 'archsites', column = 'temp', upload = 'dist', dmax = '1000', flags = 'pa')

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice:  480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu













More information about the grass-dev mailing list