gdalcubes
gdalcubes copied to clipboard
Error with v0.7.0 when using `stac_image_collection` with Sentinel-1 GRD from Planetary Computer
The following error appear when updating from 0.6.3 to 0.7.0 (cc @mherreradiaz)
Error in stac_image_collection(items$features, asset_name = c("vh", "vv")) :
Collection does not contain any images
Además: There were 32 warnings (use warnings() to see them)
The procedure was:
url <- "https://planetarycomputer.microsoft.com/api/stac/v1"
bb <- c(-71.28183, -34.33074, -71.27167, -34.32221)
items <- stac(url) |>
stac_search(collections = 'sentinel-1-grd',
bbox = bb,
datetime = paste(inicio,fin, sep = "/")) |>
post_request() |>
items_sign(sign_fn = sign_planetary_computer()) |>
items_fetch()
bb <- pol |>
st_transform(32719) |>
st_bbox() |>
as.numeric()
v = cube_view(srs = "EPSG:32719",
extent = list(t0 = as.character(inicio),
t1 = as.character(fin),
left = bb[1], right = bb[3],
top = bb[4], bottom = bb[2]),
dx = 10, dy = 10, dt = "P5D")
col <- stac_image_collection(items$features,asset_name = c('vh','vv'))