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