planckSpectra( temperature, normalize=TRUE, wavelength=300:830 )
daylightSpectra( temperature, components=colorSpec::daylight1964,
wavelength=NULL, roundMs=FALSE )
illuminantE( power=1, wavelength=380:780 )
daylight1964
and
a smoothed version daylight2013
planckSpectra
and illuminantE
this is required.
For daylightSpectra
this is optional.
The default wavelength=NULL
means to use the wavelengths in TRUE
the Planck spectra are normalized to have value 1 at 560nm.
If FALSE
then the quantity returned is radiant exitance with unit
$W * m^{-2} * nm^{-1}$.planckSpectra
and daylightSpectra
:
A colorSpec object with quantity
equal to 'power'
,
and organization
equal to 'matrix'
or 'vector'
.
The specname
s are PNNNN
or DNNNN
for planckSpectra
and daylightSpectra
respectively.
The number of spectra in the object is the number of temperatures = length(temperature)
.
For illuminantE
:
A colorSpec object with quantity
equal to 'power'
.
The number of spectra in the object is the number of power levels = length(power)
.daylightSpectra
the valid range of temperatures is 4000 to 25000 K.
For a temperature outside this range the spectrum is set to all NA
s.
The equations for daylightSpectra
and planckSpectra
are complex
and can be found in the References.
IlluminantE
is trivial - all constant power
.resample
, organization
, quantity
,
materialSpectra