powered by
It is a normalization of SR by doing NSR = (1-SR)/(1+SR), with the same two spectral bands.
nsr(s, b1, b2)lm.nsr(s, b1, b2, y)
lm.nsr(s, b1, b2, y)
Returns a NSR index.
Returns a ggplot object.
Spectral data in the format of visa's Spectra object, spectra.dataframe or spectra.matrix.
A integer number which defines the wavelength of the 1st spectral band.
A integer number which defines the wavelength of the 2nd spectral band.
A numeric variable to correlate with SR
As it exactly reads in its name, it is a normalization of the SR and ranges in (0,1).
s <- NSpec.DF$spectra nsr1 <- nsr(s, 480, 550) s <- NSpec.DF y <- NSpec.DF$N lm.nsr(s,600,500,y)
Run the code above in your browser using DataLab