R/sample_raster.R
sample_raster.Rd
sample pixels from raster data
sample_raster(input_rast, pix2extract, xy = FALSE, prog = FALSE)
SpatRaster or list of SpatRaster
dataframe. lat and lon for pixels to extract
boolean. set TRUE to get coordinates for each pixel sampled
boolean. set TRUE to display progression bar
rast_sample dataframe. pixel/plot info extracted from input_rast