[GRASS-SVN] r67233 - in grass/trunk/raster/r.watershed: ram seg
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 18 13:03:40 PST 2015
Author: mmetz
Date: 2015-12-18 13:03:39 -0800 (Fri, 18 Dec 2015)
New Revision: 67233
Modified:
grass/trunk/raster/r.watershed/ram/do_astar.c
grass/trunk/raster/r.watershed/seg/do_astar.c
Log:
r.watershed: fix correction for diagonal flow direction bias
Modified: grass/trunk/raster/r.watershed/ram/do_astar.c
===================================================================
--- grass/trunk/raster/r.watershed/ram/do_astar.c 2015-12-18 21:03:00 UTC (rev 67232)
+++ grass/trunk/raster/r.watershed/ram/do_astar.c 2015-12-18 21:03:39 UTC (rev 67233)
@@ -134,7 +134,7 @@
dist_to_nbr[ct_dir]);
}
if (!is_worked) {
- if (ct_dir > 3 && slope[ct_dir] > 0) {
+ if (ct_dir > 3 && slope[ct_dir] >= 0) {
if (slope[nbr_ew[ct_dir]] >= 0) {
/* slope to ew nbr > slope to center */
if (slope[ct_dir] <
Modified: grass/trunk/raster/r.watershed/seg/do_astar.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/do_astar.c 2015-12-18 21:03:00 UTC (rev 67232)
+++ grass/trunk/raster/r.watershed/seg/do_astar.c 2015-12-18 21:03:39 UTC (rev 67233)
@@ -87,7 +87,7 @@
dist_to_nbr[ct_dir]);
}
if (!is_worked) {
- if (ct_dir > 3 && slope[ct_dir] > 0) {
+ if (ct_dir > 3 && slope[ct_dir] >= 0) {
if (slope[nbr_ew[ct_dir]] >= 0) {
/* slope to ew nbr > slope to center */
if (slope[ct_dir] <
More information about the grass-commit
mailing list