stars (version 0.4-3)

st_extract: Extract cell values at point locations

Description

Extract cell values at point locations, possibly using interpolation

Usage

st_extract(x, ...)

# S3 method for stars st_extract(x, ...)

# S3 method for stars_proxy st_extract(x, pts, ..., method = "near", cellsize = 1e-07, debug = FALSE)

Arguments

x

object of class stars or stars_proxy

...

passed on to next method

pts

object of class sf or sfc with POINT geometries

method

interpolation method, see st_warp

cellsize

numeric; cellsize chosen for the sampling cell.

debug

logical; if TRUE, do not remove the destination grid file and print its name;

Value

if x has more dimensions than only x and y (raster), an object of class stars with POINT geometries replacing x and y raster dimensions; otherwise an object of sf.