[GRASS-SVN] r51588 - grass-addons/grass6/raster/LandDyn/devs_landcover_scripts/r.cfactor.py

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 3 16:08:14 EDT 2012


Author: isaacullah
Date: 2012-05-03 13:08:14 -0700 (Thu, 03 May 2012)
New Revision: 51588

Modified:
   grass-addons/grass6/raster/LandDyn/devs_landcover_scripts/r.cfactor.py/r.cfactor.py
Log:
Removed superflous r.mask command. Mask making is no longer needed, and this was sending out a superfluous "mask cats" error anyway...

Modified: grass-addons/grass6/raster/LandDyn/devs_landcover_scripts/r.cfactor.py/r.cfactor.py
===================================================================
--- grass-addons/grass6/raster/LandDyn/devs_landcover_scripts/r.cfactor.py/r.cfactor.py	2012-05-02 09:20:27 UTC (rev 51587)
+++ grass-addons/grass6/raster/LandDyn/devs_landcover_scripts/r.cfactor.py/r.cfactor.py	2012-05-03 20:08:14 UTC (rev 51588)
@@ -68,14 +68,9 @@
     outcfact = os.getenv("GIS_OPT_outcfact")
     cfact_rules = os.getenv("GIS_OPT_cfact_rules")
     cfact_color = os.getenv("GIS_OPT_cfact_color")
-    #setting initial conditions of map area
-    grass.run_command('r.mask', quiet = True, input = inmap, maskcats = '*')
     #creating c-factor map and setting colors
     grass.run_command('r.recode', quiet = True, input = inmap, output = outcfact, rules = cfact_rules)
     grass.run_command('r.colors',  quiet = True, map = outcfact, rules = cfact_color)
-    grass.message('\nCleaning up\n')
-    grass.run_command('g.remove',  quiet = True, rast= 'MASK')
-    grass.message('\nDONE\n')
     return
 
 # here is where the code in "main" actually gets executed. This way of programming is neccessary for the way g.parser needs to run.



More information about the grass-commit mailing list