This function is needed to compute Euclidean distance from a feature of interest in a watershed raster.
get_distance(target, out, overwrite = FALSE)
Nothing. A file with the name basename(out)
will be created in the current GRASS mapset.
File name of the watershed outlet or streams (as a raster) in the current GRASS mapset.
File path for the result to be written.
A logical indicating whether the outputs of this function should be allowed to overwrite existing files.