Skip to contents

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

Usage

FEL_spectrum(w.length, k = photobiology::FEL.BN.9101.165, fill = NA_real_)

Arguments

w.length

numeric vector of wavelengths (nm) for output

k

a numeric vector with n constants for the function

fill

if NA, no extrapolation is done, and NA is returned for wavelengths outside the range 250 nm to 900 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 250 nm to 900 nm, for wavelengths outside this range NAs are returned.

Examples

FEL_spectrum(400)
#> Object: source_spct [1 x 2]
#> Wavelength range 400-400 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      400    0.0232
FEL_spectrum(250:900)
#> Object: source_spct [651 x 2]
#> Wavelength range 250-900 nm, step 1 nm 
#> Variables:
#>  w.length: Wavelength [nm]
#>  s.e.irrad: Spectral energy irradiance [W m-2 nm-1] 
#> --
#> # A tibble: 651 × 2
#>    w.length s.e.irrad
#>       <int>     <dbl>
#>  1      250  0.000226
#>  2      251  0.000239
#>  3      252  0.000253
#>  4      253  0.000267
#>  5      254  0.000282
#>  6      255  0.000298
#>  7      256  0.000314
#>  8      257  0.000331
#>  9      258  0.000349
#> 10      259  0.000367
#> # ℹ 641 more rows