Skip to content

Commit

Permalink
r.accumulate: Add a link to r.flowaccumulation manual; Change double …
Browse files Browse the repository at this point in the history
…dir_format to unsigned char (#955)

* r.accumulate: Add a link to r.flowaccumulation manual; Change double dir_format to unsigned char

* Update src/raster/r.accumulate/r.accumulate.html

Co-authored-by: Markus Neteler <[email protected]>

* Minor formatting

---------

Co-authored-by: Markus Neteler <[email protected]>
  • Loading branch information
HuidaeCho and neteler authored Oct 17, 2023
1 parent 4d16fa7 commit e02167c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/raster/r.accumulate/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* AUTHOR(S): Huidae Cho <grass4u gmail.com>
*
* 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
*
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 5 additions & 1 deletion src/raster/r.accumulate/r.accumulate.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ <h3>Longest flow path calculation and subwatershed delineation in one run</h3>
<h2>SEE ALSO</h2>

<em>
<a href="r.flowaccumulation.html">r.flowaccumulation</a>,
<a href="https://grass.osgeo.org/grass-stable/manuals/r.watershed.html">r.watershed</a>,
<a href="https://grass.osgeo.org/grass-stable/manuals/r.stream.extract.html">r.stream.extract</a>,
<a href="r.stream.distance.html">r.stream.distance</a>
Expand All @@ -298,7 +299,10 @@ <h2>SEE ALSO</h2>

<h2>REFERENCES</h2>

Huidae Cho, September 2020. <em>A Recursive Algorithm for Calculating the Longest Flow Path and Its Iterative Implementation.</em> Environmental Modelling &amp; Software 131, 104774. <a href="https://doi.org/10.1016/j.envsoft.2020.104774">doi:10.1016/j.envsoft.2020.104774</a>.
Huidae Cho, September 2020. <em>A Recursive Algorithm for Calculating the
Longest Flow Path and Its Iterative Implementation.</em> Environmental
Modelling &amp; Software 131, 104774.
<a href="https://doi.org/10.1016/j.envsoft.2020.104774">doi:10.1016/j.envsoft.2020.104774</a>.

<h2>AUTHOR</h2>

Expand Down

0 comments on commit e02167c

Please sign in to comment.