[GRASS-SVN] r70735 - grass-addons/grass7/raster/r.lfp
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 7 08:41:56 PST 2017
Author: hcho
Date: 2017-03-07 08:41:56 -0800 (Tue, 07 Mar 2017)
New Revision: 70735
Modified:
grass-addons/grass7/raster/r.lfp/r.lfp.py
Log:
r.lfp: Reduce the tolerance for the max distance to avoid potentially multiple LFPs
Modified: grass-addons/grass7/raster/r.lfp/r.lfp.py
===================================================================
--- grass-addons/grass7/raster/r.lfp/r.lfp.py 2017-03-07 10:07:29 UTC (rev 70734)
+++ grass-addons/grass7/raster/r.lfp/r.lfp.py 2017-03-07 16:41:56 UTC (rev 70735)
@@ -5,7 +5,7 @@
# AUTHOR(S): Huidae Cho
# PURPOSE: Calculates the longest flow path for a given outlet point.
#
-# COPYRIGHT: (C) 2014 by the GRASS Development Team
+# COPYRIGHT: (C) 2014, 2017 by the GRASS Development Team
#
# This program is free software under the GNU General Public
# License (>=v2). Read the file COPYING that comes with GRASS
@@ -107,8 +107,7 @@
if p.returncode != 0 or max == "":
grass.fatal(_("Cannot find max flds+flus cell value"))
- max = float(max) + 1
- min = max - 2
+ min = float(max) - 0.0005
try:
grass.run_command("r.mapcalc",
More information about the grass-commit
mailing list