get xy of pixels to sample from raster
get_xy_samples(input_rast, nbSamples, input_mask = NULL)
Arguments
- input_rast
SpatRaster. raster to extract data from
- nbSamples
numeric. number of samples to be extracted
- input_mask
SpatRaster. mask corresponding to raster to extract data from