Extract spectral profile from the ROI
Usage
extract_spectral_profile(raster, extent = NULL, write = FALSE)
Arguments
- raster
a terra SpatRaster of normalized capture data.
- 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 spectral profile.