actinometric {colorSpec} | R Documentation |
convert a colorSpec object to be actinometric
Description
Convert a radiometric colorSpec object to have quantity that is actinometric (number of photons). Test an object for whether it is actinometric.
Usage
## S3 method for class 'colorSpec'
actinometric( x, multiplier=1, warn=FALSE )
## S3 method for class 'colorSpec'
is.actinometric( x )
Arguments
x |
a colorSpec object |
multiplier |
a scalar which is multiplied by the output, and intended for unit conversion |
warn |
if |
Details
If the quantity
of x
does not start with 'energy'
then the quantity is not radiometric and so x
is returned unchanged.
Otherwise x
is radiometric (energy-based), and must be converted.
If type(x)
is 'light'
then
the most common radiometric energy unit is joule.
The conversion equation is:
wher is the photon count,
is the energy of the photons,
is Avogadro's constant,
is Planck's constant,
is the speed of light,
and
is the wavelength.
The output unit of photon count is
(
mole of photons) = (
photons).
If a different unit for
Q
is desired,
then the output should be scaled appropriately.
For example, if the desired unit of photon count is exaphotons,
then set multiplier=0.602214
.
If the quantity(x)
is 'energy->electrical'
,
then the most common radiometric unit of responsivity to light
is coulombs/joule (C/J) or amps/watt (A/W).
The conversion equation is:
where is the quantum efficiency,
is the energy-based responsivity,
and
is the charge of an electron (in C).
If the unit of x
is not C/J,
then multiplier
should be set appropriately.
If the quantity(x)
is
'energy->neural'
or 'energy->action'
,
the most common radiometric unit of energy is joule (J).
The conversion equation is:
where is the photon-based responsivity,
and
is the energy-based responsivity,
The output unit of photon count is
(
mole of photons) = (
photons).
This essentially the reciprocal of the first conversion equation.
The argument multiplier
is applied to the right side of all the above
conversion equations.
Value
actinometric()
returns a colorSpec object
with quantity
that is
actinometric (photon-based) and not radiometric (energy-based).
If type(x)
is a material type
('material'
or 'responsivity.material'
)
then x
is returned unchanged.
If quantity(x)
starts with 'photons'
,
then is.actinometric()
returns TRUE
, and otherwise FALSE
.
Note
To log the executed conversion equation,
execute cs.options(loglevel='INFO')
.
Source
Wikipedia. Photon counting. https://en.wikipedia.org/wiki/Photon_counting
See Also
quantity
,
type
,
cs.options
,
radiometric
Examples
colSums( solar.irradiance ) # step size is 1nm, from 280 to 1000 nm. organized as a matrix
# AirMass.0 GlobalTilt AirMass.1.5
# 944.5458 740.3220 649.7749 # irradiance, watts*m^{-2}
colSums( actinometric(solar.irradiance) )
# AirMass.0 GlobalTilt AirMass.1.5
# 4886.920 3947.761 3522.149 # photon irradiance, (umoles of photons)*sec^{-1}*m^{-2}
colSums( actinometric(solar.irradiance,multiplier=0.602214) )
# AirMass.0 GlobalTilt AirMass.1.5
# 2942.972 2377.397 2121.088 # photon irradiance, exaphotons*sec^{-1}*m^{-2}