Learn R Programming

photobiology (version 0.9.6)

D2_spectrum: Calculate deuterim lamp output spectrum from fitted constants

Description

Calculate values by means of a nth degree polynomial from user-supplied constants (for example from a lamp calibartion certificate).

Usage

D2_spectrum(w.length, k = D2.UV653, fill = NULL)

Arguments

w.length
numeric vector of wavelengths (nm) for output
k
a numeric vector with n constants for the polynomial
fill
if NA, no extrapolation is done, and NA is returned for wavelengths outside the range of the input. If NULL then the tails are deleted. If 0 then the tails are set to zero, etc. NULL is default.

Value

  • a dataframe with four numeric vectors with wavelength values (w.length), energy and photon irradiance (s.e.irrad, s.q.irrad) depending on the argument passed to unit.out (s.irrad).

Examples

Run this code
D2_spectrum(200)
D2_spectrum(170:220)

Run the code above in your browser using DataLab