sample pixels from raster data

sample_raster(input_rast, pix2extract, xy = F, prog = F)

Arguments

input_rast

SpatRaster or list of SpatRaster

pix2extract

dataframe. lat and lon for pixels to extract

xy

boolean. set TRUE to get coordinates for each pixel sampled

prog

boolean. set TRUE to display progression bar

Value

rast_sample dataframe. pixel/plot info extracted from input_rast