Skip to contents

calculate band ratio of selected wavelengths.

Usage

calculate_band_ratio(
  raster,
  ratio_name,
  edges,
  extent = NULL,
  ext = NULL,
  filename = NULL
)

Arguments

raster

terra SpatRaster of normalized capture data.

ratio_name

character, lower case name of calculated ratio.

edges

numeric vector of two for the (numerator and denominator).

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 ratio values.