sample pixels or plots from raster data
sample_from_raster(
extent_area,
nbSamples,
input_rast,
input_mask = NULL,
window_size = NULL,
capstyle = "square"
)
.
numeric. number of samples to be extracted
SpatRaster. raster to extract data from
SpatRaster. mask corresponding to raster to extract data from
numeric. window size for square plots
character. shape of the plot, see terra::buffer for info on options for capstyle
rast_sample dataframe. pixel/plot info extracted from input_rast