This function gives the photon ratio between two given wavebands of a radiation spectrum.
photon_ratio(
w.length,
s.irrad,
w.band.num = NULL,
w.band.denom = NULL,
unit.in = "energy",
check.spectrum = TRUE,
use.cached.mult = FALSE,
use.hinges = getOption("photobiology.use.hinges", default = NULL)
)
numeric vector of wavelength (nm).
numeric vector of spectral (energy or photon) irradiances (W m-2 nm-1) or (mol s-1 m-2 nm-1).
waveband object used to compute the numerator of the ratio.
waveband object used to compute the denominator of the ratio.
character Allowed values "energy", and "photon", or its alias "quantum".
logical Flag telling whether to sanity check input data, default is TRUE.
logical Flag telling whether multiplier values should be cached between calls.
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 unitless ratio.
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()
,
photons_energy_ratio()
,
prod_spectra()
,
s_e_irrad2rgb()
,
split_energy_irradiance()
,
split_photon_irradiance()
,
subt_spectra()
,
sum_spectra()
,
trim_tails()
,
v_insert_hinges()
,
v_replace_hinges()
# NOT RUN {
with(sun.data,
photon_ratio(w.length, s.e.irrad, new_waveband(400,500), new_waveband(400,700)))
# }
Run the code above in your browser using DataLab