sample_raster: sample pixels from raster data

View source: R/sample_raster.R

sample_rasterR Documentation

sample pixels from raster data

Description

sample pixels from raster data

Usage

sample_raster(input_rast, pix2extract, xy = F, prog = F)

Arguments

input_rast

SpatRaster or list of SpatRaster

pix2extract

dataframe. lat and lon for pixels to extract

xy

boolean. set TRUE to get coordinates for each pixel sampled

prog

boolean. set TRUE to display progression bar

Value

rast_sample dataframe. pixel/plot info extracted from input_rast


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