View source: R/sample_from_raster.R
sample_from_raster | R Documentation |
sample pixels or plots from raster data
sample_from_raster(
extent_area,
nbSamples,
input_rast,
input_mask = NULL,
window_size = NULL,
capstyle = "square"
)
extent_area |
. |
nbSamples |
numeric. number of samples to be extracted |
input_rast |
SpatRaster. raster to extract data from |
input_mask |
SpatRaster. mask corresponding to raster to extract data from |
window_size |
numeric. window size for square plots |
capstyle |
character. shape of the plot, see terra::buffer for info on options for capstyle |
rast_sample dataframe. pixel/plot info extracted from input_rast
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.