Skip to content

Commit

Permalink
Save to tempfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 committed Aug 13, 2024
1 parent 7b82f3d commit fa7dc91
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 6 deletions.
12 changes: 8 additions & 4 deletions R/get_stac_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,16 @@
#' mask_band = "qa_pixel",
#' mask_function = landsat_mask_function,
#' item_filter_function = landsat_platform_filter,
#' platforms = c("landsat-9", "landsat-8")
#' platforms = c("landsat-9", "landsat-8"),
#' output_filename = tempfile(fileext = ".tif")
#' )
#'
#' # or, mostly equivalently (will download more bands):
#' landsat_image <- get_landsat_imagery(
#' aoi,
#' start_date = "2022-06-01",
#' end_date = "2022-08-30"
#' end_date = "2022-08-30",
#' output_filename = tempfile(fileext = ".tif")
#' )
#'
#' # The `get_*_imagery()` functions will download
Expand All @@ -188,7 +190,8 @@
#' sentinel1_data <- get_sentinel1_imagery(
#' aoi,
#' start_date = "2022-06-01",
#' end_date = "2022-07-01"
#' end_date = "2022-07-01",
#' output_filename = tempfile(fileext = ".tif")
#' )
#' names(terra::rast(sentinel1_data))
#'
Expand All @@ -207,7 +210,8 @@
#' aoi,
#' start_date = "2022-06-01",
#' end_date = "2022-07-01",
#' asset_names = sentinel2_band_mapping$planetary_computer_v1["B01"]
#' asset_names = sentinel2_band_mapping$planetary_computer_v1["B01"],
#' output_filename = tempfile(fileext = ".tif")
#' )
#' names(terra::rast(sentinel2_imagery))
#'
Expand Down
37 changes: 35 additions & 2 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 fa7dc91

Please sign in to comment.