1

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 distance to the closest dam for each cell. And the distance should be calculate along the river network.

In the above picture, the distance from the blue point to Dam2 should be returned to the blue cell.

Does anyone know how to solve the problem using GRASS? I need the result as a raster file.


Some of my guess are given below.

I'm guessing some tools like r.cost?

  • 1
    Hi, I guess is better if you split the questions in to posts. Then, it is missing something about the way you want to calculate this and get the result. Do you want to produce a raster file with "installed capacity upstream" and another one with "distance to closest utility upstream"? or do you want to do this as a procedure for a single point? – Marco Nov 8 '18 at 15:15
  • Please decide which of ArcGIS Desktop and GRASS, and which of your two questions, you wish to ask about in this particular question – PolyGeo Nov 8 '18 at 20:21
  • Hi @Marco Thanks for the reply, I need raster results. – BBR Nov 8 '18 at 22:41
  • @PolyGeo Hi, the question is edited in accordance with the title, sry for the trouble. – BBR Nov 8 '18 at 22:42
  • Feel free to ask the same question but for ArcGIS Desktop as a separate question. We ask for one question per question so that your question and our answers can focus on precisely what you have tried and where you are stuck. – PolyGeo Nov 8 '18 at 22:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.