Skip to contents

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.

Value

one layer terra SpatRaster with calculated difference values