Skip to contents

This function gives the result of integrating spectral irradiance over wavelengths.

Usage

integrate_xy(x, y)

Arguments

x

numeric vector.

y

numeric vector.

Value

a single numeric value with no change in scale factor: e.g. [W m-2 nm-1] -> [W m-2]

Examples

with(sun.data, integrate_xy(w.length, s.e.irrad))
#> [1] 269.1249