Skip to content

Commit

Permalink
Update R/valley.R
Browse files Browse the repository at this point in the history
Co-authored-by: Francesco Nattino <[email protected]>
  • Loading branch information
meiertgrootes and fnattino authored Nov 20, 2024
1 parent 2095d42 commit 89587c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/valley.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ get_stac_asset_urls <- function(bb, endpoint="https://earth-search.aws.element84
#'
#' @return A a merged dem fromm retrieved assets cropped to the bounding box
#' @export
get_stac_dem <- function(bb, asset_urls){
dem <- asset_urls |>
load_raster <- function(raster_urlpaths, bb){
raster_urlpaths |>
lapply(rast) |>
lapply(crop, as.vector(t(bb))) |>
do.call(merge, args=_)
Expand Down

0 comments on commit 89587c5

Please sign in to comment.