Input a raster, specify band number if you want anything but the first band. xy is expected to
be a matrix: cbind(lon, lat).
locationinfo(x, xy, band = 1L)raster data source
points on the raster (we assume longlat)
which band to read, defaults to 1
numeric vector
Can be parallelized by setting plan() with the 'future' package (via 'furrr').