Learn R Programming

photobiology (version 0.9.8)

integrate_xy: Gives irradiance from spectral irradiance.

Description

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

Usage

integrate_xy(x, y)

Arguments

x
numeric array
y
numeric array

Value

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

Examples

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

Run the code above in your browser using DataLab