[GRASS-dev] new strange error
Michael Barton
Michael.Barton at asu.edu
Mon Jun 18 21:53:16 PDT 2012
Any idea why the following statement...
grass.run_command('g.remove', rast='s%' % panmatch1)
...raises the following error...
Traceback (most recent call last):
File "/Users/cmbarton/Library/GRASS/7.0/Modules/scripts/i.pansharpen", line 417, in <module>
main()
File "/Users/cmbarton/Library/GRASS/7.0/Modules/scripts/i.pansharpen", line 145, in main
grass.run_command('g.remove', rast='s%' % panmatch1)
ValueError: incomplete format
but this statement...
grass.run_command('g.remove', rast=panmatch1)
...does not.
panmatch1 is a string variable that stores a temporary file name. In this run, the value of panmatch1 = "10707_pan1"
Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20120618/68e05429/attachment.html>
More information about the grass-dev
mailing list