Skip to contents

Derive cost distance function from masked slope

Usage

get_cost_distance(slope, river, target = 0)

Arguments

slope

raster of slope data

river

vector data of river

target

value for cost distance calculation

Value

raster of cost distance