Extract average proxy series from ROI
Usage
extract_spectral_series(
raster,
index = NULL,
categorical = FALSE,
calibration = NULL,
extent = NULL,
filename = NULL,
extension = NULL
)
Arguments
- raster
terra SpatRaster with one layer with calculated values.
- index
character indicating hyperspectral index layer to plot.
- categorical
is SpatRaster categorical. Defaults to FALSE. If categorical, then most abundant class is retained.
- 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.
- filename
empty = in memory, TRUE = guess name and attempt write, or user specified path to glue with extension.
- extension
character, a graphic format extension.