[GRASS-SVN] r60600 - grass-addons/grass7/raster/r.hazard.flood

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 30 00:37:36 PDT 2014


Author: hellik
Date: 2014-05-30 00:37:36 -0700 (Fri, 30 May 2014)
New Revision: 60600

Modified:
   grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py
Log:
r.hazard.flood: adopt new option in r.area (r60389: Add lesser and greater options)

Modified: grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py
===================================================================
--- grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py	2014-05-30 05:34:28 UTC (rev 60599)
+++ grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py	2014-05-30 07:37:36 UTC (rev 60600)
@@ -127,7 +127,7 @@
     # Calculating threshold
     th = int(1000000 / resolution**2)
     grass.message("Deleting areas of less than %s cells.. " % th)   
-    grass.run_command('r.area', input = 'r_clump', output = 'r_flood_th', treshold = th, flags = 'b')
+    grass.run_command('r.area', input = 'r_clump', output = 'r_flood_th', lesser = th, flags = 'b')
 
     # New flood map
     grass.mapcalc("$r_flood_map = $rast1 / $rast1", r_flood_map = r_flood_map, rast1 = 'r_flood_th')



More information about the grass-commit mailing list