Learn R Programming

photobiology (version 0.9.6)

energy_irradiance: Calculate (energy) irradiance from spectral irradiance

Description

This function gives the energy irradiance for a given waveband of a radiation spectrum, optionally applies a BSWF.

Usage

energy_irradiance(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 irradiances, by default as energy (W m-2 nm-1)
w.band
waveband
unit.in
a character Allowed values "photon" or "energy", default is "energy"
check.spectrum
logical Flag indicating whether to sanity check input data, default is TRUE
use.cached.mult
logical Flag indicating whether multiplier values should be cached between calls
use.hinges
logical Flag indicating whether to use hinges to reduce interpolation errors

Value

  • A single numeric value with no change in scale factor: [W m-2 nm-1] -> [W m-2]

See Also

Other irradiance functions: e_fluence, e_irrad, fluence, irradiance, irrad, photon_irradiance, q_fluence, q_irrad

Examples

Run this code
with(sun.data, energy_irradiance(w.length, s.e.irrad))
with(sun.data, energy_irradiance(w.length, s.e.irrad, new_waveband(400,700)))

Run the code above in your browser using DataLab