[GRASS-SVN] r61402 - grass-addons/grass7/raster/r.bioclim

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 25 08:21:48 PDT 2014


Author: mmetz
Date: 2014-07-25 08:21:47 -0700 (Fri, 25 Jul 2014)
New Revision: 61402

Modified:
   grass-addons/grass7/raster/r.bioclim/r.bioclim.py
Log:
r.bioclim: fix g.mremove otions

Modified: grass-addons/grass7/raster/r.bioclim/r.bioclim.py
===================================================================
--- grass-addons/grass7/raster/r.bioclim/r.bioclim.py	2014-07-25 14:39:46 UTC (rev 61401)
+++ grass-addons/grass7/raster/r.bioclim/r.bioclim.py	2014-07-25 15:21:47 UTC (rev 61402)
@@ -79,7 +79,7 @@
 
 def cleanup():
     if tmp:
-        grass.run_command('g.mremove', rast = tmp, flags = 'f', quiet = True)
+        grass.run_command('g.mremove', type = 'rast', pattern = tmp, flags = 'f', quiet = True)
 
 def main():
     tavg = options['tavg']
@@ -197,7 +197,7 @@
                   bio = outpre + '.bio02',
                   oscale = toutscale, input = output, iscale = tinscale)
     grass.run_command('g.remove', rast = output, quiet = True);
-    grass.run_command('g.mremove', rast = '%s.tr??.%d' % (outpre, pid), flags = 'f', quiet = True)
+    grass.run_command('g.mremove', type = 'rast', pattern = '%s.tr??.%d' % (outpre, pid), flags = 'f', quiet = True)
 
     # BIO4 = Temperature Seasonality (standard deviation * 100)
     grass.message(_("BIO4 = Temperature Seasonality ..."))
@@ -287,7 +287,7 @@
     
 
     if not prec:
-        grass.run_command('g.mremove', rast = tmp, flags = 'f', quiet = True)
+        grass.run_command('g.mremove', type = 'rast', pattern = tmp, flags = 'f', quiet = True)
         sys.exit(1)
 
     precl = prec.split(',')
@@ -422,7 +422,7 @@
                   precq0 = precql[0], precq1 = precql[1],
                   precq2 = precql[2], precq3 = precql[3])
 
-    grass.run_command('g.mremove', rast = tmp, flags = 'f', quiet = True)
+    grass.run_command('g.mremove', type = 'rast', pattern = tmp, flags = 'f', quiet = True)
 
 
 if __name__ == "__main__":



More information about the grass-commit mailing list