[GRASS-dev] [GRASS GIS] #2686: r.hazard.flood error output
GRASS GIS
trac at osgeo.org
Mon Jun 1 07:22:55 PDT 2015
#2686: r.hazard.flood error output
--------------------------+---------------------------------
Reporter: zimbogisgeek | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 7.0.1
Component: Python | Version: svn-releasebranch70
Keywords: | CPU: All
Platform: All |
--------------------------+---------------------------------
Running r.hazard.flood produces an erroneous map mainly because in the
r.hazard.py script there is a mistake in calculating the final map. The
command that produces the error is
grass.mapcalc("$r_flood_map = $rast1 / $rast1", r_flood_map = r_flood_map,
rast1 = 'r_flood_th')
which should be
grass.mapcalc("$r_flood_map = $rast1 / $rast2", r_flood_map =
r_flood_map, rast1 = 'r_flood_th', rast2 = 'r_flood')
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2686>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list