[GRASS-SVN] r55756 - in grass/branches/develbranch_6/raster/r.watershed: ram seg
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 13 08:04:56 PDT 2013
Author: mmetz
Date: 2013-04-13 08:04:56 -0700 (Sat, 13 Apr 2013)
New Revision: 55756
Modified:
grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c
grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c
Log:
r.watershed: sync skipping edge cells
Modified: grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c 2013-04-13 15:03:30 UTC (rev 55755)
+++ grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c 2013-04-13 15:04:56 UTC (rev 55756)
@@ -149,9 +149,9 @@
seg_index_rc(alt_seg, this_index, &r, &c);
FLAG_SET(worked, r, c);
aspect = asp[this_index];
- if (aspect) {
- dr = r + asp_r[ABS(aspect)];
- dc = c + asp_c[ABS(aspect)];
+ if (aspect > 0) {
+ dr = r + asp_r[aspect];
+ dc = c + asp_c[aspect];
}
else
dr = dc = -1;
Modified: grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c 2013-04-13 15:03:30 UTC (rev 55755)
+++ grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c 2013-04-13 15:04:56 UTC (rev 55756)
@@ -165,9 +165,9 @@
c = point.c;
bseg_put(&worked, &one, r, c);
cseg_get(&asp, &asp_val, r, c);
- if (asp_val) {
- dr = r + asp_r[ABS(asp_val)];
- dc = c + asp_c[ABS(asp_val)];
+ if (asp_val > 0) {
+ dr = r + asp_r[asp_val];
+ dc = c + asp_c[asp_val];
}
else
dr = dc = -1;
More information about the grass-commit
mailing list