sample_plots_from_raster: sample pixels or plots from raster data

View source: R/sample_plots_from_raster.R

sample_plots_from_rasterR Documentation

sample pixels or plots from raster data

Description

sample pixels or plots from raster data

Usage

sample_plots_from_raster(
  extent_area,
  nbSamples,
  input_rast,
  MinSun = 0.25,
  input_mask = NULL,
  window_size = NULL
)

Arguments

extent_area

.

nbSamples

numeric. number of samples to be extracted

input_rast

SpatRaster. raster to extract data from

MinSun

numeric. minimum amount of sunlit pixels in the plots

input_mask

SpatRaster. mask corresponding to raster to extract data from

window_size

numeric. window size for square plots

Value

rast_sample dataframe. pixel/plot info extracted from input_rast


jbferet/biodivMapR documentation built on April 12, 2025, 1:32 p.m.