[GRASS-SVN] r57903 - grass/trunk/scripts/r.rgb
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 1 06:34:11 PDT 2013
Author: annakrat
Date: 2013-10-01 06:34:10 -0700 (Tue, 01 Oct 2013)
New Revision: 57903
Modified:
grass/trunk/scripts/r.rgb/r.rgb.py
Log:
r.rgb: out prefix must be name of input without mapset, remove unused imports
Modified: grass/trunk/scripts/r.rgb/r.rgb.py
===================================================================
--- grass/trunk/scripts/r.rgb/r.rgb.py 2013-10-01 09:23:55 UTC (rev 57902)
+++ grass/trunk/scripts/r.rgb/r.rgb.py 2013-10-01 13:34:10 UTC (rev 57903)
@@ -27,9 +27,6 @@
#% required: no
#%end
-import sys
-import os
-import string
import grass.script as grass
def main():
@@ -40,7 +37,7 @@
grass.fatal(_("Raster map <%s> not found") % input)
if not output:
- output = input
+ output = input.split('@')[0]
expr = ';'.join(["${output}.r = r#${input}",
"${output}.g = g#${input}",
More information about the grass-commit
mailing list