Cumulative cost upstream a raster stream network with GRASS

by BBR   Last Updated November 08, 2018 23:22 PM

I have a river network in raster and locations of many dams on the river.

enter image description here

In the image above, the BLUE point represent one random cell. Dam 1 is downstream to the cell.

I am looking to calculate the cumulative installed capacity of all dam upstream each cell. Of course, the installed capacity data are collected.

In the example, the sum of Dam2 and Dam3 capacity should be assigned to the blue cell. And I want the result in raster.

Does anyone know how to solve the problem using GRASS?

Related Questions

Updated October 10, 2017 18:22 PM

Updated July 17, 2018 18:22 PM

Updated February 05, 2018 20:22 PM

Updated March 17, 2017 05:22 AM

Updated February 06, 2017 14:09 PM