Query a STAC source
Sign STAC items retrieved from the Planetary Computer
Generate a Sentinel 2 stac collection doc_imes object
Usage
stac_query(
bbox,
stac_source,
collection,
start_date,
end_date,
limit = 999,
...
)
sign_planetary_computer(items, subscription_key = Sys.getenv("rsi_pc_key"))
sentinel2_stac_query(
bbox,
start_date,
end_date,
assets = c("B01", "B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B09", "B11",
"B12", "SCL"),
max_cloud_cover = 10,
stac_source = "https://planetarycomputer.microsoft.com/api/stac/v1/",
collection = "sentinel-2-l2a",
mpc_sign = TRUE
)
Arguments
- bbox
A numeric vector of the bounding box (length 4) in lat/long
- stac_source
A character string of the STAC source
- collection
A character string of the collection to query
- start_date
A character string of the start date
- end_date
A character string of the end date
- limit
The number of items to return
- ...
Additional arguments to pass to the query
- items
A STACItemCollection.
- subscription_key
Optionally, a subscription key associated with your Planetary Computer account. At the time of writing, this is required for downloading Sentinel 1 RTC products, as well as NAIP imagery. This key will be automatically used if the environment variable
rsi_pc_key
is set.- assets
A character vector of the asset names to include
- max_cloud_cover
A numeric value of the maximum cloud cover percentage
- mpc_sign
A logical indicating whether to sign the items using the Planetary Computer API's signing method (only required if using the Planetary Computer STAC API).