Simulate reflectance spectra while sweeping one trait, all others fixed
getSim_fromLUT.RdBuilds a LUT where every trait is held at its default except trait,
which is swept from nmin to nmax in steps of Interval,
runs the canopy simulation, and plots the resulting spectra.
Usage
getSim_fromLUT(
trait = "Cab",
nmin = 0,
nmax = 100,
Interval = 10,
psoil = 0.5,
model = "PROSAIL",
method = "ggplot"
)Arguments
- trait
character. Name of the trait to sweep (e.g.
"Cab","LAI"). Default"Cab".- nmin, nmax
numeric. Minimum/maximum value of
trait's sweep range.- Interval
numeric. Step size between successive values of
traitin the sweep.- psoil
numeric (0-1). Soil brightness factor (0 = wet soil, 1 = dry soil), mixed from
ToolsRTM::dataSpec_PDB's dry/wet reference spectra.- model
character. Canopy simulation to run:
"PROSAIL","INFORM", or"PROSPECT".- method
character.
"ggplot"(default) or"classical"(base-R plotting) for the spectral plot.