I have a river network shape (or raster) and need to calculate the distance (river, not straight line!) for each pixel (or if not possible for lets say every 10 meters or for a random set of points) to the end of the river. I need this as a raster file. This will serve as an input for fish habitat modelling where the distance to source is an important predictor.
I know how to calculate that for a certain set of points via "locate features along routes", but how can I get it for "all" the points along the river?
I am using ArcGIS!