I have created these raster files for a river basin:
- Flow Direction
- Flow Accumulation
Also, I have another raster with values of rainfall.
All the 4 rasters have same spatial extent, resolution and dimensions.
How can I calculate the flow distance of each pixel of rainfall from the outlet of the basin?
Theoretically, I have to follow the Flow Accumulation values, but I'm not sure how to implement it and whether there are existing implementations.
I am currently working with raster package in R, but I am open to other platforms.