-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Thanks so much for a great package with such intuitive syntax! This has been a lifeline with the retirement of sen2r. I am getting an error when I attempt to use the rsat_download()
function:
Ordering on ESPA platform...
Error in (new("refMethodDef", .Data = function (espa_orders, db_path, :
argument "espa_orders" is missing, with no default
It appears that there is an argument missing from an internal function and no argument to pass it directly from rsat_download()
Here is a reproducible example:
library(rsat)
library(terra)
library(sf)
library(tmap)
library(tmaptools)
xmin<-538078.1
xmax<-866945.5
ymin<-773531.3
ymax<-1436377.3
AOI_ext<-ext(xmin, xmax, ymin, ymax)
AOI<-AOI_ext %>% st_bbox() %>% st_as_sfc() %>% st_as_sf(crs=6557)
tmap_mode("view")
tm_shape(AOI)+
tm_polygons(border.col="magenta", alpha=0, col=NA, lwd=2)+
tm_basemap(server = providers$Esri.WorldImagery)
toi<-as.Date("2023-04-27")
db.path <- file.path(tempdir(),"database_test")
ds.path <- file.path(tempdir(),"datasets_test")
if(!dir.exists(db.path)){
dir.create(db.path)
}
if(!dir.exists(ds.path)){
dir.create(ds.path)
}
April<-new_rtoi(name="April_test2", region=AOI, db_path=db_path, rtoi_path = ds_path)
searchit<-rsat_search(region=April, product="S2MSI1C", dates=toi)
rsat_download(searchit, db_path=db_path)
Metadata
Metadata
Assignees
Labels
No labels