Skip to content

Commit

Permalink
r.flowaccumulation: Explain the type option better (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Apr 6, 2024
1 parent 5f40487 commit 8e2a1ec
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/raster/r.flowaccumulation/r.flowaccumulation.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ <h2>NOTES</h2>
similar to the <b>-z</b> flag, but zero cells are not nullified and are saved
in the output map.

<p>Weighted flow accumulation can be computed using a <b>weight</b> raster map.
When this option is given, its raster type is used for flow accumulation, and
the <b>type</b> option, <b>-o</b>, <b>-z</b>, and <b>-Z</b> flags cannot be
specified.
<p>Weighted flow accumulation can be computed using the <b>weight</b> option.
When this option is given, the data type for flow accumulation is automatically
promoted to that of the weight map if the <b>type</b> option is not explicitly
given, but one can choose to use a different data type if needed (e.g., FCELL
for CELL weights, DCELL for FCELL weights). However, CELL cannot be used for
FCELL or DCELL weighting to maintain floating-point precision. Similarly, FCELL
cannot be used for DCELL weighting. The data type will be promoted in these
cases, ignoring the user request. The <b>-o</b>, <b>-z</b>, and <b>-Z</b> flags
cannot be used with the <b>weight</b> option.

<h2>EXAMPLES</h2>

Expand Down

0 comments on commit 8e2a1ec

Please sign in to comment.