vec_extract_points: Extract band values at (x, y) points from a .vec raster

View source: R/raster.R

vec_extract_pointsR Documentation

Extract band values at (x, y) points from a .vec raster

Description

Extract band values at (x, y) points from a .vec raster

Usage

vec_extract_points(r, x, y)

Arguments

r

A vectra_raster from vec_open_raster().

x

Numeric vector of x coordinates in CRS units.

y

Numeric vector of y coordinates, same length as x.

Value

A data.frame with columns x, y, then one column per band (named after r$band_names if recorded, otherwise band1, band2, ...). NA marks pixels outside the raster or matching nodata.


vectra documentation built on May 8, 2026, 9:06 a.m.