Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with v0.7.0 when using stac_image_collection with Sentinel-1 GRD from Planetary Computer #100

Open
frzambra opened this issue Jun 7, 2024 · 0 comments

Comments

@frzambra
Copy link

frzambra commented Jun 7, 2024

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'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant