Learn R Programming

photobiology (version 0.9.6)

check_spectrum: Sanity check of a spectrum.

Description

This function checks a spectral radiation data in numeric vectors for compliance with assumptions used in calculations.

Usage

check_spectrum(w.length, s.irrad)

Arguments

w.length
numeric Vector of wavelengths (nm)
s.irrad
numeric Corresponding vector of spectral (energy) irradiances (W m-2 nm-1)

Value

  • A single logical value indicating whether test was passed or not

See Also

Other data validity check functions: check_spct, check_w.length

Examples

Run this code
with(sun.data, check_spectrum(w.length, s.e.irrad))

Run the code above in your browser using DataLab