[GRASS-SVN] r48128 - grass/trunk/scripts/i.landsat.rgb

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 5 04:04:44 EDT 2011


Author: hamish
Date: 2011-09-05 01:04:44 -0700 (Mon, 05 Sep 2011)
New Revision: 48128

Modified:
   grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py
Log:
Glynn: don't try to run r.support if the map is in another mapset

Modified: grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py
===================================================================
--- grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py	2011-09-05 07:03:13 UTC (rev 48127)
+++ grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py	2011-09-05 08:04:44 UTC (rev 48128)
@@ -124,8 +124,10 @@
 	    set_colors(i, v0, v1)
 
     # write cmd history:
+    mapset = grass.gisenv()['MAPSET']
     for i in [red, green, blue]:
-	grass.raster_history(i)
+        if grass.find_file(i)['mapset'] == mapset:
+            grass.raster_history(i)
 
 if __name__ == "__main__":
     options, flags = grass.parser()



More information about the grass-commit mailing list