getNormWavelengthData: Extract the depth series for a specific wavelength

View source: R/spectralCalculationsNick.R

getNormWavelengthDataR Documentation

Extract the depth series for a specific wavelength

Description

Extract the depth series for a specific wavelength

Usage

getNormWavelengthData(
  normData,
  normWavelengths,
  wavelengthToGet,
  tol = 1,
  agg.fun = "mean"
)

Arguments

normData

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

normWavelengths

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

wavelengthToGet

What wavelength to do you want to extract

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.

Value

The depth sequence of normalized reflectance values for the requested wavelength.


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