[GRASS-SVN] r67421 - grass/branches/releasebranch_7_0/scripts/v.rast.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 29 09:19:24 PST 2015


Author: martinl
Date: 2015-12-29 09:19:24 -0800 (Tue, 29 Dec 2015)
New Revision: 67421

Modified:
   grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: check for MASK only in the current mapset
              (merge r66421 from trunk)


Modified: grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py	2015-12-29 13:31:55 UTC (rev 67420)
+++ grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py	2015-12-29 17:19:24 UTC (rev 67421)
@@ -124,7 +124,7 @@
         grass.fatal(_("Raster map <%s> not found") % raster)
 
     # check presence of raster MASK, put it aside
-    mask_found = bool(grass.find_file('MASK', 'cell')['file'])
+    mask_found = bool(grass.find_file('MASK', 'cell', mapset)['file'])
     if mask_found:
         grass.message(_("Raster MASK found, temporarily disabled"))
         grass.run_command('g.rename', raster=('MASK', tmpname + "_origmask"),



More information about the grass-commit mailing list