[GRASS-SVN] r61793 - grass/trunk/scripts/i.tasscap

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 3 07:38:34 PDT 2014


Author: martinl
Date: 2014-09-03 07:38:34 -0700 (Wed, 03 Sep 2014)
New Revision: 61793

Modified:
   grass/trunk/scripts/i.tasscap/i.tasscap.py
Log:
i.tasscap: use standardized option (output_prefix->basename)


Modified: grass/trunk/scripts/i.tasscap/i.tasscap.py
===================================================================
--- grass/trunk/scripts/i.tasscap/i.tasscap.py	2014-09-03 14:32:32 UTC (rev 61792)
+++ grass/trunk/scripts/i.tasscap/i.tasscap.py	2014-09-03 14:38:34 UTC (rev 61793)
@@ -75,11 +75,7 @@
 #% key: band7
 #% description: Name of input raster map (LANDSAT channel 7)
 #%end
-#%option
-#% key: output_prefix
-#% type: string
-#% description: Prefix for output raster maps
-#% required: yes
+#%option G_OPT_R_BASENAME_OUTPUT
 #%end
 
 import sys
@@ -107,7 +103,7 @@
     grass.run_command('r.colors', map = out, color = 'grey')
 
 def calcN(options, i, n):
-    outpre = options['output_prefix']
+    outpre = options['basename']
     grass.message(_("LANDSAT-%d...") % n)
     for j, p in enumerate(parms[i]):
 	out = "%s.%d" % (outpre, j + 1)



More information about the grass-commit mailing list