admin管理员组文章数量:1335357
I am encountering an issue with the get_records() function from the getSpatialData package in R. The error message states: Argument 'products' must be a character containing at least one element.
It seems that the function requires the products argument to specify which data product (e.g., Sentinel-2, etc.) to query. However, I am unsure which product names are valid or how to structure this argument correctly for my area of interest (AOI) and time range.
Any guidance on setting up the products argument or troubleshooting this error would be greatly appreciated.
# devtools::install_github("16EAGLE/getSpatialData")
library(getSpatialData)
library(sf)
dat <- st_as_sf(st_sfc(st_polygon(list(rbind(c(-58.5, -34.9),
c(-58.3, -34.9),
c(-58.3, -34.6),
c(-58.5, -34.6),
c(-58.5, -34.9))))),
crs = 4326)
print(dat)
login_CopHub(username = "xxxxx", password = "xxxxx")
out <- get_records(collection = "Sentinel-2",
aoi = dat,
time_range = c("2023-04-15", "2023-09-15"),
max_cloud_cov = 20)
Error: Argument 'products' must be a character containing at least one element.
本文标签: rError in getrecords() function from the getSpatialData libraryStack Overflow
版权声明:本文标题:r - Error in get_records() function from the getSpatialData library - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742268933a2443935.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论