Learn R Programming

vectra (version 0.6.2)

vec_extract_points: 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)

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.

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.