calculateBandRatio: Calculate a Band Ratio

View source: R/spectralCalculationsNick.R

calculateBandRatioR Documentation

Calculate a Band Ratio

Description

Calculate a Band Ratio

Usage

calculateBandRatio(normData, normWavelengths, tol = 1, top = 570, bot = 630)

Arguments

normData

Normalized spectral data (the output of 'specimR::calculateMeanRows()')

normWavelengths

A vector of wavelengths (the output of 'specimR::calculateMeanRows()')

tol

Tolerance for distance from the requested wavelength. If no values are present within the tolerance, this returns an error. If multiple are present, this returns the average of those values.

top

the wavelength in the top of the ratio (the numerator) (default = 570)

bot

the wavelength in the top of the ratio (the denominator) (default = 630)

Value

a depth series of the band ratio


nickmckay/specimR documentation built on July 6, 2022, 8:09 p.m.