Learn R Programming

photobiology (version 0.9.6)

reflectance_spct: Calculate reflectance from spectral reflectance

Description

This function returns the mean reflectance for a given waveband and a reflectance spectrum.

Usage

reflectance_spct(spct, w.band, quantity, wb.trim, use.hinges)

Arguments

spct
an object of class generic_spct"
w.band
list of waveband definitions created with new_waveband()
quantity
character string
wb.trim
logical if TRUE wavebands crossing spectral data boundaries are trimmed, if FALSE, they are discarded
use.hinges
logical indicating whether to use hinges to reduce interpolation errors

Value

  • A single numeric value expressed as a fraction of one