[GRASS-SVN] r47685 -
grass-addons/grass7/raster/r.modis/r.modis.import
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 17 04:22:54 EDT 2011
Author: lucadelu
Date: 2011-08-17 01:22:54 -0700 (Wed, 17 Aug 2011)
New Revision: 47685
Modified:
grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py
Log:
fix bug on g.mremove
Modified: grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py 2011-08-17 05:40:24 UTC (rev 47684)
+++ grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py 2011-08-17 08:22:54 UTC (rev 47685)
@@ -281,7 +281,8 @@
import pdb; pdb.set_trace()
grass.mapcalc(finalmap)
grass.run_command('g.remove', rast=(valname, valname + '.2'))
- grass.run_command('g.mremove', flag="f", rast = ("%s.*" % qaname)
+ grass.run_command('g.mremove', flag="f", quiet = True,
+ rast = ("%s.*" % qaname))
grass.run_command('g.rename', rast=(valname + '.3', valname))
#TODO check in modis.py to adjust the xml file of mosaic
#metadata(parse, valfull, col)
More information about the grass-commit
mailing list