Skip to contents

Extract average proxy series from ROI

Usage

extract_spectral_series(
  raster,
  index = NULL,
  calibration = NULL,
  extent = NULL,
  ext = NULL,
  filename = NULL
)

Arguments

raster

terra SpatRaster with one layer with calculated values.

index

character indicating hyperspectral index layer to plot.

calibration

result of pixel_to_distance or actual call to pixel_to_distance with appropriate input.

extent

an extent or SpatVector used to subset SpatRaster. Defaults to the entire SpatRaster.

ext

character, a graphic format extension.

filename

empty = in memory, TRUE = guess name and attempt write, or user specified path to glue with ext.

Value

tibble frame with XY coordinates and averaged proxy values.