Skip to content

Commit

Permalink
Highlight using st_make_grid()
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 committed Aug 20, 2024
1 parent 0b294d3 commit f95714f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions R/get_stac_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,26 @@
#' output_filename = tempfile(fileext = ".tif")
#' )
#' names(terra::rast(sentinel2_imagery))
#'
#' # If you're downloading data for a particularly large AOI,
#' # and can't composite the resulting images or want to make
#' # sure you can continue an interrupted download,
#' # consider tiling your AOI and requesting each tile separately:
#' aoi <- sf::st_make_grid(aoi, n = 2)
#' tiles <- lapply(
#' seq_along(aoi),
#' function(i) {
#' get_landsat_imagery(
#' aoi[i],
#' start_date = "2022-06-01",
#' end_date = "2022-08-30",
#' output_filename = tempfile(fileext = ".tif")
#' )
#' }
#' )
#' # You'll get a list of tiles that you can then composite or
#' # work with however you wish:
#' unlist(tiles)
#'
#' @export
get_stac_data <- function(aoi,
Expand Down
20 changes: 20 additions & 0 deletions man/get_stac_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f95714f

Please sign in to comment.