Find band index positions by matching requested wavelengths to the nearest available band. When multiple requested wavelengths resolve to the same band index, only the last is retained.
Arguments
- x
A
SpatRasterwith hyperspectral data.- wavelength
Numeric vector. Desired wavelengths in nm.
Value
A tibble with columns:
- wavelength
Numeric. Requested wavelength in nm.
- position
Integer. Corresponding band index in
x.- band_wavelength
Numeric. Actual wavelength of the matched band in nm.
See also
Other Utilities:
hsi_bind_rows(),
hsi_find_extent(),
hsi_subset(),
hsi_subset_range()