smooth_spct() for spectra added. Based on the smoothing code in package
MayaCalc and optionally behaving as a wrapper to other smoothers available in R. Implemented for
response.spct objects. Its interface may change. Now package
caTools is neded.
.spct objects and numeric vectors, possibly of length one, now preserve other variables (e.g. ID factors) contained in the spectral objects.
Fixed bug in
Bad input error reporting improved for off-range
Rfr values in
check(). Warning given by
Tfr = 0 result in
A = Inf. Added
na.rm = TRUE when
max() are called on spectral data within the package code.
The formal arguments added to function
rbindspct() in version 0.5.7 have been changed to more closely follow the development version 1.9.5 of package
data.table. This will break user code that uses the previous syntax as added a few weeks ago to this package.
Fixed bug in handling of
"relative.pc" in function
absorbance() which was affecting plot annotations.
Mostly backwards compatible, but new checks for validity of data be triggered by code and data that earlier silently accepted bad and dubious quality data.
Added luminous efficiency functions for human vision, and the constants used in the definition of Lumen.
Setlow’s BSWF is now stored as a response.spct object using the same variable names as in the rest of the suite. The Setlow data from TUV has already been converted to energy units, but this was not noticed when this data was added to the package. This bug is now corrected.
Updated User Guide with some examples of the calculation of luminous flux in lux from spectral irradiance data.
Added plots of the luminous efficiency curves to the Data Plots vignette.
NOTE: Sources, and Windows binaries for R 3.1.x, are now available in the repository.