boettiger-lab / earthdatalogin

Making public access of public data a bit easier
https://boettiger-lab.github.io/earthdatalogin/
Other
23 stars 4 forks source link

edl_search() bounding_box not working #14

Open eeholmes opened 5 months ago

eeholmes commented 5 months ago

Looks like it needs a paste(bounding_box, collapse=",").

short_name <- 'AVHRR_OI-NCEI-L4-GLOB-v2.1'
tbox <- c("2020-01-16", "2020-12-16")
bbox <- c(xmin=-73.5, ymin=33.5, xmax=-43.5, ymax=43.5) 

This throws error

results <- edl_search(
    short_name = short_name,
    version = "2.1",
    temporal = tbox,
    bounding_box = bbox
)

This does not

results <- edl_search(
    short_name = short_name,
    version = "2.1",
    temporal = tbox,
    bounding_box = paste(bbox,collapse=",")
)