50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

photobiology (version 0.11.4)

check_spectrum: Sanity check a spectrum

Description

Checks spectral irradiance data in numeric vectors for compliance with assumptions used in calculations.

Usage

check_spectrum(w.length, s.irrad)

Value

A single logical value indicating whether test was passed or not

Arguments

w.length

numeric vector of wavelengths [nm].

s.irrad

numeric Corresponding vector of spectral (energy) irradiances [Wm2nm1].

See Also

Other data validity check functions: check_spct(), check_w.length(), enable_check_spct()

Examples

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

Run the code above in your browser using DataLab