[GRASS-SVN] r51370 - grass/trunk/scripts/r.mask
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 10 18:26:27 EDT 2012
Author: martinl
Date: 2012-04-10 15:26:27 -0700 (Tue, 10 Apr 2012)
New Revision: 51370
Modified:
grass/trunk/scripts/r.mask/r.mask.py
Log:
r.mask: `tmp` map is already remove by cleanup()
Modified: grass/trunk/scripts/r.mask/r.mask.py
===================================================================
--- grass/trunk/scripts/r.mask/r.mask.py 2012-04-10 22:25:10 UTC (rev 51369)
+++ grass/trunk/scripts/r.mask/r.mask.py 2012-04-10 22:26:27 UTC (rev 51370)
@@ -92,9 +92,8 @@
if invert:
global tmp
tmp = "r_mask_%d" % os.getpid()
- grass.run_command('g.rename', rast = ('MASK',tmp), quiet = True)
+ grass.run_command('g.rename', rast = ('MASK', tmp), quiet = True)
grass.mapcalc("MASK=if(isnull($tmp),1,null())", tmp = tmp)
- grass.run_command('g.remove', rast = tmp, quiet = True)
grass.message(_("Inverted MASK created."))
else:
grass.message(_("MASK created."))
More information about the grass-commit
mailing list