Browse Source

i.tasscap: use standardized option (output_prefix->basename)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61793 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 years ago
parent
commit
e96567b55f
1 changed files with 2 additions and 6 deletions
  1. 2 6
      scripts/i.tasscap/i.tasscap.py

+ 2 - 6
scripts/i.tasscap/i.tasscap.py

@@ -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 @@ def calc1(out, bands, k1, k2, k3, k4, k5, k7, k0 = 0):
     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)