accumulate_flow.RdAccumulate flow, given flow directions and weights.
accumulate_flow(directions, weights, wrapX, wrapY)
| directions | a matrix of flow directions, where directions are represented by the following values:
|
|---|---|
| weights | a matrix of weights, representing the amount of flow originating at each cell |
| wrapX | should flow exiting the X-limits of the model be routed to the other side? |
| wrapY | should flow exiting the Y-limits of the model be routed to the other side? |
a matrix of accumulated flow values