mask_slope: Mask slope raster, setting the slope to zero for the pixels...

View source: R/valley.R

mask_slopeR Documentation

Mask slope raster, setting the slope to zero for the pixels overlapping the river area.

Description

Mask slope raster, setting the slope to zero for the pixels overlapping the river area.

Usage

mask_slope(slope, river, lthresh = 0.001, target = 0)

Arguments

slope

raster data of slope

river

vector/polygon data of river

lthresh

lower numerival threshold to consider slope non-zero

target

value to set for pixels overlapping river area

Value

updated slope raster


rcrisp documentation built on Aug. 8, 2025, 6:42 p.m.