downstream_flow.RdCompute the sum of flow originating in downstream basins
downstream_flow(basin_ids, downstream_ids, flows)
| basin_ids | a vector of basin ids |
|---|---|
| downstream_ids | a vector of downstream basin ids,
aligned with the entries in |
| flows | a vector of flows generated in each basin,
aligned with the entries in |
a vector of downstream flows for each basin (excluding flow generated
within the basin), aligned with the entries in basin_ids