Calculate deuterium lamp output spectrum from fitted constants
Source:R/d2.spectrum.r
D2_spectrum.Rd
Calculate values by means of a nth degree polynomial from user-supplied constants (for example from a lamp calibration certificate).
Usage
D2_spectrum(w.length, k = photobiology::D2.UV653, fill = NA_real_)
Arguments
- w.length
numeric vector of wavelengths (nm) for output
- k
a polynom:polynomial object with n constants for the polynomial
- fill
if NA, no extrapolation is done, and NA is returned for wavelengths outside the range 190 nm to 450 nm. If NULL then the tails are deleted. If 0 then the tails are set to zero, etc. NA 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).
Note
This is function is valid for wavelengths in the range 180 nm to 495 nm, for wavelengths outside this range NAs are returned.
Examples
D2_spectrum(200)
#> Object: source_spct [1 x 2]
#> Wavelength range 200-200 nm, step NA nm
#> Variables:
#> w.length: Wavelength [nm]
#> s.e.irrad: Spectral energy irradiance [W m-2 nm-1]
#> --
#> # A tibble: 1 × 2
#> w.length s.e.irrad
#> <dbl> <dbl>
#> 1 200 0.0801
D2_spectrum(170:220)
#> Object: source_spct [51 x 2]
#> Wavelength range 170-220 nm, step 1 nm
#> Variables:
#> w.length: Wavelength [nm]
#> s.e.irrad: Spectral energy irradiance [W m-2 nm-1]
#> --
#> # A tibble: 51 × 2
#> w.length s.e.irrad
#> <int> <dbl>
#> 1 170 NA
#> 2 171 NA
#> 3 172 NA
#> 4 173 NA
#> 5 174 NA
#> 6 175 NA
#> 7 176 NA
#> 8 177 NA
#> 9 178 NA
#> 10 179 NA
#> # ℹ 41 more rows