View source: R/photons.energy.ratio.r
| photons_energy_ratio | R Documentation |
This function gives the photons:energy ratio between for one given waveband of a radiation spectrum.
photons_energy_ratio(
w.length,
s.irrad,
w.band = NULL,
unit.in = "energy",
check.spectrum = TRUE,
use.cached.mult = FALSE,
use.hinges = getOption("photobiology.use.hinges", default = NULL)
)
w.length |
numeric vector of wavelength (nm). |
s.irrad |
numeric vector of spectral irradiances in
[ |
w.band |
waveband object. |
unit.in |
character Allowed values |
check.spectrum |
logical Flag telling whether to sanity check input data, default is TRUE. |
use.cached.mult |
logical Flag telling whether multiplier values should be cached between calls. |
use.hinges |
logical Flag indicating whether to insert "hinges" into the spectral data before integration so as to reduce interpolation errors at the boundaries of the wavebands. |
A single numeric value giving the ratio moles-photons per Joule.
The default for the w.band parameter is a waveband covering
the whole range of w.length.
Other low-level functions operating on numeric vectors.:
as_energy(),
as_quantum_mol(),
calc_multipliers(),
div_spectra(),
energy_irradiance(),
energy_ratio(),
insert_hinges(),
integrate_xy(),
interpolate_spectrum(),
irradiance(),
l_insert_hinges(),
oper_spectra(),
photon_irradiance(),
photon_ratio(),
prod_spectra(),
s_e_irrad2rgb(),
split_energy_irradiance(),
split_photon_irradiance(),
subt_spectra(),
sum_spectra(),
trim_tails(),
v_insert_hinges(),
v_replace_hinges()
# photons:energy ratio
with(sun.data, photons_energy_ratio(w.length, s.e.irrad, new_waveband(400,500)))
# photons:energy ratio for whole spectrum
with(sun.data, photons_energy_ratio(w.length, s.e.irrad))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.