| stac_to_cube | R Documentation |
Bridges STAC search results to 'gdalcubes' for raster data cube analysis. Requires the 'gdalcubes' package to be installed.
stac_to_cube(items, asset_names = NULL, ...)
items |
An rstac |
asset_names |
Character vector. Asset names to include in the
image collection (e.g., |
... |
Additional arguments passed to
|
A gdalcubes image collection object.
raw <- stac_search_raw(
url = "https://earth-search.aws.element84.com/v1",
collections = "sentinel-2-l2a",
bbox = c(-84.5, 38.0, -84.3, 38.2),
limit = 5
)
cube <- stac_to_cube(raw, asset_names = c("red", "green", "blue"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.