R/sample_plots_from_raster.R
sample_plots_from_raster.Rd
sample pixels or plots from raster data
sample_plots_from_raster(
extent_area,
nbSamples,
input_rast,
MinSun = 0.25,
input_mask = NULL,
window_size = NULL
)
.
numeric. number of samples to be extracted
SpatRaster. raster to extract data from
numeric. minimum amount of sunlit pixels in the plots
SpatRaster. mask corresponding to raster to extract data from
numeric. window size for square plots
rast_sample dataframe. pixel/plot info extracted from input_rast