We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terra::extract()
I noticed such issue. When the files are on the disk locally, {terra} is faster.
library("terra") library("raster") set.seed(1) url = "/vsizip/vsicurl/https://naciscdn.org/naturalearth/10m/raster/SR_LR.zip/SR_LR.tif" pts = cbind(x = runif(44000, -180, 180), y = runif(44000, -90, 90)) # raster ----------------------------------------------------------------------- system.time({ r1 = raster(url) e1 = extract(r1, pts) }) #> user system elapsed #> 3.34 0.85 12.54 # terra ------------------------------------------------------------------------ system.time({ r2 = rast(url) e2 = extract(r2, pts) }) #> user system elapsed #> 29.75 2.56 200.22
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I noticed such issue. When the files are on the disk locally, {terra} is faster.
The text was updated successfully, but these errors were encountered: