[GRASS-SVN] r72711 - grass-addons/grass7/raster/r.lfp
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 14 21:08:12 PDT 2018
Author: hcho
Date: 2018-05-14 21:08:12 -0700 (Mon, 14 May 2018)
New Revision: 72711
Modified:
grass-addons/grass7/raster/r.lfp/r.lfp.py
Log:
Copyright year; 80 cols
Modified: grass-addons/grass7/raster/r.lfp/r.lfp.py
===================================================================
--- grass-addons/grass7/raster/r.lfp/r.lfp.py 2018-05-15 03:41:51 UTC (rev 72710)
+++ grass-addons/grass7/raster/r.lfp/r.lfp.py 2018-05-15 04:08:12 UTC (rev 72711)
@@ -5,7 +5,7 @@
# AUTHOR(S): Huidae Cho
# PURPOSE: Calculates the longest flow path for a given outlet point.
#
-# COPYRIGHT: (C) 2014, 2017 by the GRASS Development Team
+# COPYRIGHT: (C) 2014, 2017, 2018 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
@@ -128,7 +128,8 @@
heads = prefix + "heads"
try:
grass.run_command("r.mapcalc", overwrite=True,
- expression="%s=if(!isnull(%s)&&%s>=%f,1,null())" % (heads, lfp, flds, min))
+ expression="%s=if(!isnull(%s)&&%s>=%f,1,null())" %
+ (heads, lfp, flds, min))
except CalledModuleError:
grass.fatal(_("Cannot find the headwater cells"))
@@ -141,7 +142,8 @@
# calculate the longest flow path in vector format
try:
- grass.run_command("r.path", input=input, vector_path=output, start_points=heads)
+ grass.run_command("r.path", input=input, vector_path=output,
+ start_points=heads)
except CalledModuleError:
grass.fatal(_("Cannot create the longest flow path vector map"))
More information about the grass-commit
mailing list