sample pixels or plots from raster data

sample_plots_from_raster(
  extent_area,
  nb_samples,
  input_rast,
  min_sun = 0.25,
  input_mask = NULL,
  window_size = NULL
)

Arguments

extent_area

.

nb_samples

numeric. number of samples to be extracted

input_rast

SpatRaster. raster to extract data from

min_sun

numeric. minimum amount of sunlit pixels in the plots

input_mask

SpatRaster. mask corresponding to raster

window_size

numeric. window size for square plots

Value

rast_sample dataframe. pixel/plot info extracted from input_rast