Open lucas-johnson opened 15 hours ago
packageVersion('rsi')
#> [1] '0.3.0'
bbox_dl <- tempfile()
download.file('https://github.com/user-attachments/files/17284035/bbox.zip', bbox_dl)
bbox_file <- unzip(bbox_dl)
bbox <- sf::st_read(bbox_file)
#> Reading layer `bbox' from data source
#> `/private/tmp/Rtmp769K6P/reprex-39db373ce1a2-alive-lark/bbox.gpkg'
#> using driver `GPKG'
#> Simple feature collection with 1 feature and 0 fields
#> Geometry type: POLYGON
#> Dimension: XY
#> Bounding box: xmin: -335805.7 ymin: 1179539 xmax: 2261755 ymax: 3023828
#> Projected CRS: NAD83 / Conus Albers
test <- rsi::get_stac_data(
# Spatial AOI:
aoi = bbox,
# Which asset do we want, from which collection, from which API:
asset_names = "aws0_999",
stac_source = "https://planetarycomputer.microsoft.com/api/stac/v1",
collection = "gnatsgo-rasters",
output_filename = tempfile(),
start_date = "2019-07-01",
end_date = "2021-07-01",
pixel_x_size = 30,
pixel_y_size = 30
)
#> Error:
#> ! Failed to evaluate glue component {items$features[[which_item]]$id %||% 'UNKNOWN'}
#> Caused by error in `items$features[[which_item]]`:
#> ! recursive indexing failed at level 3
Created on 2024-10-07 with reprex v2.1.1
Downloading some data from the microsoft planetary computer for a large area in northeastern US. I'm getting an error that i'm not sure how to resolve. Thanks for the package and your help!
See the reprex below in the subsequent comments.
bbox.zip