-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Dear chirps package developers
When I try example case 4 (with SpatExtent as object argument) from https://docs.ropensci.org/chirps/reference/get_chirps.html as follows:
library(chirps)
library(terra)
# Case 4: input SpatExtent and return a raster within the extent
area <- ext(c(-66, -64, -6, -4))
dates <- c("2017-12-15", "2017-12-31")
r4 <- get_chirps(area, dates, server = "CHC")
I get the following error message:
Error in as.data.frame.default(object) :
cannot coerce class ‘structure("SpatExtent", package = "terra")’ to a data.frame
This version of example case 4 is not present in the reference from cran so I'm guessing it is no longer supported. Being able to download chirps data in an area of interest would, however, be a very useful feature!
Would you have a recommendation on how the chirps r package could be used to obtain data within an area of interest?
Many greetings
Metadata
Metadata
Assignees
Labels
No labels