[GRASS-SVN] r59879 - grass-addons/grass7/raster/r.hazard.flood
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 21 07:31:43 PDT 2014
Author: madi
Date: 2014-04-21 07:31:42 -0700 (Mon, 21 Apr 2014)
New Revision: 59879
Modified:
grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py
Log:
patch to make it respect region settings
Modified: grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py
===================================================================
--- grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py 2014-04-21 13:40:59 UTC (rev 59878)
+++ grass-addons/grass7/raster/r.hazard.flood/r.hazard.flood.py 2014-04-21 14:31:42 UTC (rev 59879)
@@ -75,7 +75,7 @@
r_mti = options['mti']
# Detect cellsize of the DEM
- info_region = grass.read_command('g.region', flags = 'p', rast = '%s' % (r_elevation))
+ info_region = grass.read_command('g.region', flags = 'p')
dict_region = grass.parse_key_val(info_region, ':')
resolution = (float(dict_region['nsres']) + float(dict_region['ewres']))/2
grass.message("Cellsize : %s " % resolution)
More information about the grass-commit
mailing list