[GRASS-SVN] r63196 - in grass/trunk/scripts: i.pansharpen r.blend r.rgb

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 27 06:34:21 PST 2014


Author: martinl
Date: 2014-11-27 06:34:21 -0800 (Thu, 27 Nov 2014)
New Revision: 63196

Modified:
   grass/trunk/scripts/i.pansharpen/i.pansharpen.py
   grass/trunk/scripts/r.blend/r.blend.py
   grass/trunk/scripts/r.rgb/r.rgb.py
Log:
fix script to use G_OPT_R_BASENAME_OUTPUT

Modified: grass/trunk/scripts/i.pansharpen/i.pansharpen.py
===================================================================
--- grass/trunk/scripts/i.pansharpen/i.pansharpen.py	2014-11-27 14:28:14 UTC (rev 63195)
+++ grass/trunk/scripts/i.pansharpen/i.pansharpen.py	2014-11-27 14:34:21 UTC (rev 63196)
@@ -100,7 +100,7 @@
     ms2       = options['green'] # green channel
     ms3       = options['red'] # red channel
     pan       = options['pan'] # high res pan channel
-    out       = options['basename'] # prefix for output RGB maps
+    out       = options['output'] # prefix for output RGB maps
     bladjust  = flags['l'] # adjust blue channel
     sproc     = flags['s'] # serial processing
     

Modified: grass/trunk/scripts/r.blend/r.blend.py
===================================================================
--- grass/trunk/scripts/r.blend/r.blend.py	2014-11-27 14:28:14 UTC (rev 63195)
+++ grass/trunk/scripts/r.blend/r.blend.py	2014-11-27 14:34:21 UTC (rev 63196)
@@ -52,7 +52,7 @@
 def main():
     first = options['first']
     second = options['second']
-    output = options['output_prefix']
+    output = options['output']
     percent = options['percent']
 
     mapset = grass.gisenv()['MAPSET']

Modified: grass/trunk/scripts/r.rgb/r.rgb.py
===================================================================
--- grass/trunk/scripts/r.rgb/r.rgb.py	2014-11-27 14:28:14 UTC (rev 63195)
+++ grass/trunk/scripts/r.rgb/r.rgb.py	2014-11-27 14:34:21 UTC (rev 63196)
@@ -30,7 +30,7 @@
 
 def main():
     input = options['input']
-    output = options['basename']
+    output = options['output']
 
     if not grass.find_file(input)['file']:
 	grass.fatal(_("Raster map <%s> not found") % input)



More information about the grass-commit mailing list