calculate band difference of selected wavelengths.
Usage
calculate_band_difference(
raster,
difference_name,
edges,
extent = NULL,
ext = NULL,
filename = NULL
)
Arguments
- raster
terra SpatRaster of normalized capture data.
- difference_name
a character, lower case name of calculated difference.
- edges
numeric vector of two for the difference.
- extent
an extent or SpatVector used to subset SpatRaster. Defaults to the entire SpatRaster.
- ext
character, a graphic format extension.
- filename
NULL (default) to write automatically into products, provide full path and ext to override.
See also
Other Spectral calculations:
calculate_band_ratio()
,
calculate_derivative()
,
calculate_lambdaremp()
,
calculate_raba()
,
calculate_rabd()
,
calculate_rmean()