[GRASS-SVN] r51718 - in grass/trunk: gui/wxpython/mapdisp gui/wxpython/wxplot scripts/i.spectral

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 24 13:07:36 EDT 2012


Author: martinl
Date: 2012-05-24 10:07:36 -0700 (Thu, 24 May 2012)
New Revision: 51718

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
   grass/trunk/gui/wxpython/wxplot/profile.py
   grass/trunk/scripts/i.spectral/i.spectral.py
Log:
update py scripts for r.what (east_north->coordinates)


Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2012-05-24 17:06:35 UTC (rev 51717)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2012-05-24 17:07:36 UTC (rev 51718)
@@ -687,7 +687,7 @@
             rcmd.append('-f')
             rcmd.append('-n')
             rcmd.append('input=%s' % ','.join(rast))
-            rcmd.append('east_north=%f,%f' % (float(east), float(north)))
+            rcmd.append('coordinates=%f,%f' % (float(east), float(north)))
         
         if vect:
             # check for vector maps open to be edited

Modified: grass/trunk/gui/wxpython/wxplot/profile.py
===================================================================
--- grass/trunk/gui/wxpython/wxplot/profile.py	2012-05-24 17:06:35 UTC (rev 51717)
+++ grass/trunk/gui/wxpython/wxplot/profile.py	2012-05-24 17:07:36 UTC (rev 51718)
@@ -154,7 +154,7 @@
                                  parent = self,
                                  read = True,
                                  input = self.rasterList[0],
-                                 east_north = '%d,%d' % (point[0],point[1]))
+                                 coordinates = '%d,%d' % (point[0],point[1]))
                 
                 val = ret.splitlines()[0].split('|')[3]
                 if val == None or val == '*': continue

Modified: grass/trunk/scripts/i.spectral/i.spectral.py
===================================================================
--- grass/trunk/scripts/i.spectral/i.spectral.py	2012-05-24 17:06:35 UTC (rev 51717)
+++ grass/trunk/scripts/i.spectral/i.spectral.py	2012-05-24 17:07:36 UTC (rev 51718)
@@ -188,7 +188,7 @@
     numbands = len(rastermaps)
 
     what = []
-    s = grass.read_command('r.what', input = rastermaps, east_north = coords, quiet = True)
+    s = grass.read_command('r.what', input = rastermaps, coordinates = coords, quiet = True)
     for l in s.splitlines():
 	f = l.split('|')
 	for i, v in enumerate(f):



More information about the grass-commit mailing list