Difficult Computations Made Easy
2026-04-12
I made bad design decisions in my first two attempts at writing an R package for photobiology. My third attempt and current packages have as aims:
e2q() and q2e() in R package ‘photobiology’sun.spct spectral irradiancesun_daily.spct spectral daily exposureautoplot()sun.spct spectral irradiancesun_daily.spct spectral daily exposuree_irrad()q_irrad()waveband()\[E = \int_{\lambda_1}^{\lambda_2} E_\lambda\ d\,\lambda\] where the wavelength range \(\lambda_1\) to \(\lambda_1\) is the waveband to integrate.
E_range.400.500
69.69043
attr(,"time.unit")
[1] "second"
attr(,"radiation.unit")
[1] "total energy irradiance"
\[Q = \int_{\lambda_1}^{\lambda_2} Q_\lambda\ d\,\lambda\] where the wavelength range \(\lambda_1\) to \(\lambda_1\) is the waveband to integrate.
Q_range.400.500
0.0002633524
attr(,"time.unit")
[1] "second"
attr(,"radiation.unit")
[1] "total photon irradiance"
Q_range.400.500
263.3524
attr(,"time.unit")
[1] "second"
attr(,"radiation.unit")
[1] "total photon irradiance"
Q_range.400.500
10.46503
attr(,"time.unit")
[1] "day"
attr(,"radiation.unit")
[1] "total photon irradiance"
Multiple definitions in use!
# A tibble: 1 × 4
Q_Red.Warrington Q_Red.Smith20 Q_Red.Sellaro Q_Red.Apogee
<dbl> <dbl> <dbl> <dbl>
1 160. 63.6 192. 62.4
Energy irradiance in 400 to 700 nm is not PAR, even if meteorologists call it PAR. I use PhR instead.
E_PhR
196.6343
attr(,"time.unit")
[1] "second"
attr(,"radiation.unit")
[1] "total energy irradiance"
Q_PAR
894.1483
attr(,"time.unit")
[1] "second"
attr(,"radiation.unit")
[1] "total photon irradiance"
e_ratio() and q_ratio()eq_ratio() and qe_ratio()R:FR[q:q]
1.242474
attr(,"radiation.unit")
[1] "q:q ratio"
R:FR[q:q]
1.242474
attr(,"radiation.unit")
[1] "q:q ratio"
Blue:Red[q:q]
0.9840123
attr(,"radiation.unit")
[1] "q:q ratio"
R:FR[q:q]
1.266704
attr(,"radiation.unit")
[1] "q:q ratio"
R:FR[q:q]
1.266704
attr(,"radiation.unit")
[1] "q:q ratio"
Can be estimated from: - the wavelength of single colour light - from the spectrum of the light - for a mix of red and far red light
[1] 13.47349
*, +, etc.Normalized spectra so that \(\mathrm{max} Q_\lambda = 1\).
Spectrum with 200 \(\mu mol m^{-2} s^{-1}\) from white Nichia Optisolis LED and 20 \(\mu mol m^{-2} s^{-1}\) from an Ledengin-OSRAM fra-red LED.
This presentation is a “web page” and the editable ‘.qmd’ markdown source file is at github.