check_spectrum: Sanity check a spectrum

Description Usage Arguments Value See Also Examples

View source: R/check.spectrum.r

Description

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

Usage

1
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(), enable_check_spct()

Examples

1
with(sun.data, check_spectrum(w.length, s.e.irrad))

photobiology documentation built on April 4, 2021, 5:05 p.m.