Description Usage Arguments Value Note Examples

View source: R/calc.source.output.r

Values calculated by interpolation from user-supplied spectral emission data or by name for light source data included in the packages photobiologySun, photobiologyLamps, or photobiologyLEDs, optionally re-scaling the spectral data values.

1 2 3 4 5 6 7 8 9 | ```
calc_source_output(
w.length.out,
w.length.in,
s.irrad.in,
unit.in = "energy",
scaled = NULL,
fill = NA,
...
)
``` |

`w.length.out` |
numeric vector of wavelengths (nm) for output. |

`w.length.in` |
numeric vector of wavelengths (nm) for input. |

`s.irrad.in` |
numeric vector of spectral transmittance value (fractions or percent). |

`unit.in` |
a character string "energy" or "photon". |

`scaled` |
NULL, "peak", "area"; div ignored if !is.null(scaled). |

`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. |

`...` |
Additional arguments passed to |

a source_spct with three numeric vectors with wavelength values (w.length), scaled and interpolated spectral energy irradiance (s.e.irrad), scaled and interpolated spectral photon irradiance values (s.q.irrad).

This is a convenience function that adds no new functionality but makes it a little easier to plot lamp spectral emission data consistently. It automates interpolation, extrapolation/trimming and scaling.

1 2 3 4 5 | ```
with(sun.data,
calc_source_output(290:1100,
w.length.in = w.length,
s.irrad.in = s.e.irrad)
)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.