Learn R Programming

photobiology (version 0.9.6)

photons_energy_ratio: Photon:energy ratio

Description

This function gives the photons:energy ratio between for one given waveband of a radiation spectrum.

Usage

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))

Arguments

w.length
numeric array of wavelength (nm)
s.irrad
numeric array of spectral (energy) irradiances (W m-2 nm-1)
w.band
waveband
unit.in
character Allowed values "energy", and "photon", or its alias "quantum"
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 telling whether to use hinges to reduce interpolation errors

Value

  • A single numeric value giving the ratio moles-photons per Joule.

See Also

Other photon and energy ratio functions: e_ratio, energy_ratio, eq_ratio, photon_ratio, q_ratio, qe_ratio

Examples

Run this code
# 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))

Run the code above in your browser using DataLab