Usage
extract_spectral_indices(
raster,
.hsi_index = NULL,
.extent = NULL,
.write = FALSE
)
Arguments
- raster
a terra SpatRaster of normalized capture data.
- .hsi_index
character indicating hyperspectral index layer to plot.
- .extent
an extent or SpatVector used to subset SpatRaster. Defaults to the entire SpatRaster.
- .write
optional, should output be written to csv file.
Value
a tibble with averaged value or multiple values of spectral indices.