rstac
rstac copied to clipboard
Protocol "s3" not supported or disabled in libcurl
Describe the bug
We are attempting to improve access to our Digital Earth Australia satellite data for R users, and rstac
looks like a perfect option to replicate functionality we currently have via Python's pystac.client
package.
I can successfully download STAC assets using the example code provided by rstac
using the code below:
library(magrittr)
library(rstac)
stac("https://brazildatacube.dpi.inpe.br/stac/") %>%
stac_search(collections = "CB4-16D-2",
datetime = "2019-06-01/2019-08-01",
limit=1) %>%
stac_search() %>%
get_request() %>%
assets_download(asset_names = "thumbnail", output_dir = tempdir())
However, when attempting to download similar data from the Digital Earth Australia STAC endpoint (https://explorer.sandbox.dea.ga.gov.au/stac), I get the following Protocol "s3" not supported or disabled in libcurl
error:
stac("https://explorer.sandbox.dea.ga.gov.au/stac") %>%
stac_search(collections = "ga_s2am_ard_3",
datetime = "2019-06-01/2019-08-01",
limit=1) %>%
stac_search() %>%
get_request() %>%
assets_download(asset_names = "nbart_red", output_dir = tempdir())
To Reproduce Run code example above.
Additional context We are able to successfully find and download data without issues in Python using the workflow documented here: https://knowledge.dea.ga.gov.au/guides/setup/gis/stac/
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.utf8 LC_CTYPE=English_Australia.utf8 LC_MONETARY=English_Australia.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Australia.utf8
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] rstac_1.0.0 magrittr_2.0.3
loaded via a namespace (and not attached):
[1] Rcpp_1.0.11 png_0.1-8 class_7.3-20 sf_1.0-16 crayon_1.5.2 grid_4.2.0 R6_2.5.1
[8] jsonlite_1.8.7 DBI_1.1.3 units_0.8-4 e1071_1.7-13 KernSmooth_2.23-20 httr_1.4.7 curl_5.1.0
[15] tools_4.2.0 jpeg_0.1-10 proxy_0.4-27 compiler_4.2.0 classInt_0.4-10