From 7d46395908af1cbe504516d2854549f7b498ec0f Mon Sep 17 00:00:00 2001 From: Huidae Cho Date: Sun, 15 Oct 2023 10:06:25 -0600 Subject: [PATCH 1/3] r.accumulate: Add a link to r.flowaccumulation manual; Change double dir_format to unsigned char --- src/raster/r.accumulate/main.c | 3 ++- src/raster/r.accumulate/r.accumulate.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/raster/r.accumulate/main.c b/src/raster/r.accumulate/main.c index f234d99ad8..1d416d6e72 100644 --- a/src/raster/r.accumulate/main.c +++ b/src/raster/r.accumulate/main.c @@ -64,7 +64,8 @@ int main(int argc, char *argv[]) *accum_name, *subaccum_name, *subwshed_name, *stream_name, *outlet_name, *lfp_name; int dir_fd; - double dir_format, thresh; + unsigned char dir_format; + double thresh; struct Range dir_range; CELL dir_min, dir_max; char neg_accum, zero_accum, accum_lfp, conf_stream, recur; diff --git a/src/raster/r.accumulate/r.accumulate.html b/src/raster/r.accumulate/r.accumulate.html index 67e992a7b3..33e91e9c77 100644 --- a/src/raster/r.accumulate/r.accumulate.html +++ b/src/raster/r.accumulate/r.accumulate.html @@ -288,6 +288,7 @@

Longest flow path calculation and subwatershed delineation in one run

SEE ALSO

+r.flowaccumulation, r.watershed, r.stream.extract, r.stream.distance From 7e088daa03a671d2398d00f64bcb6da3b3a1ad1b Mon Sep 17 00:00:00 2001 From: Huidae Cho Date: Mon, 16 Oct 2023 07:18:56 -0600 Subject: [PATCH 2/3] Update src/raster/r.accumulate/r.accumulate.html Co-authored-by: Markus Neteler --- src/raster/r.accumulate/r.accumulate.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raster/r.accumulate/r.accumulate.html b/src/raster/r.accumulate/r.accumulate.html index 33e91e9c77..0ae65a17dd 100644 --- a/src/raster/r.accumulate/r.accumulate.html +++ b/src/raster/r.accumulate/r.accumulate.html @@ -288,7 +288,7 @@

Longest flow path calculation and subwatershed delineation in one run

SEE ALSO

-r.flowaccumulation, +r.flowaccumulation, r.watershed, r.stream.extract, r.stream.distance From e772cdba3b89b919b6ddf8bab608d0846ff23ba6 Mon Sep 17 00:00:00 2001 From: Huidae Cho Date: Mon, 16 Oct 2023 18:53:35 -0600 Subject: [PATCH 3/3] Minor formatting --- src/raster/r.accumulate/main.c | 2 +- src/raster/r.accumulate/r.accumulate.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/raster/r.accumulate/main.c b/src/raster/r.accumulate/main.c index 1d416d6e72..81767deb54 100644 --- a/src/raster/r.accumulate/main.c +++ b/src/raster/r.accumulate/main.c @@ -5,7 +5,7 @@ * AUTHOR(S): Huidae Cho * * PURPOSE: Calculates weighted flow accumulation, subwatersheds, stream - * networks, and longest flow paths using a flow direction map. + * networks, and longest flow paths using a flow direction map. * * COPYRIGHT: (C) 2018, 2020 by Huidae Cho and the GRASS Development Team * diff --git a/src/raster/r.accumulate/r.accumulate.html b/src/raster/r.accumulate/r.accumulate.html index 0ae65a17dd..1711237c98 100644 --- a/src/raster/r.accumulate/r.accumulate.html +++ b/src/raster/r.accumulate/r.accumulate.html @@ -299,7 +299,10 @@

SEE ALSO

REFERENCES

-Huidae Cho, September 2020. A Recursive Algorithm for Calculating the Longest Flow Path and Its Iterative Implementation. Environmental Modelling & Software 131, 104774. doi:10.1016/j.envsoft.2020.104774. +Huidae Cho, September 2020. A Recursive Algorithm for Calculating the +Longest Flow Path and Its Iterative Implementation. Environmental +Modelling & Software 131, 104774. +doi:10.1016/j.envsoft.2020.104774.

AUTHOR