Skip to content

Commit

Permalink
Update R/valley.R
Browse files Browse the repository at this point in the history
Co-authored-by: Claudiu Forgaci <[email protected]>
  • Loading branch information
meiertgrootes and cforgaci authored Nov 21, 2024
1 parent 8eabe7f commit 24610f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/valley.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,8 @@ get_cost_distance <- function(slope, river, target = 0){
#'
#' @return cd raster with river+BUFFER pixels masked
#' @export
mask_cost_distance <- function(cd, river, BUFFER=2000){
BUFFER_REGION <- BUFFER # m
river_buffer <- st_buffer(river, BUFFER_REGION)
mask_cost_distance <- function(cd, river, buffer=2000){
river_buffer <- st_buffer(river, buffer)
cd_masked <- mask(
cd,
river_buffer,
Expand Down

0 comments on commit 24610f4

Please sign in to comment.