sunlight.ASTM: Calculate irradiances based on ASTM G173-03 reference

View source: R/sunlightASTM.R

sunlight.ASTMR Documentation

Calculate irradiances based on ASTM G173-03 reference

Description

Calculate the spectral irradiance for sunlight at or below Earth's atmosphere based on ASTM G173-03 reference spectra

Usage

sunlight.ASTM(
  wavelength = c(seq(280, 400, 0.5), seq(401, 1700, 1), 1702, seq(1705, 4000, 5)),
  model = ""
)

Arguments

wavelength

defaults to the wavelength values used in the G173-03 model

model

accepts empty string (default), or "AM1.5G", "AM0", or "DNCS"

Details

Calculate the spectral irradiance of sunlight on Earth based on ASTM G173-03 model for any wavelength between 280 nm and 4000 nm with at best 0.01 nm resolution (interpolated).

Value

NOTE: which model is returned depends on the "model" argument

wavelength

Wavelength/nm

<model>.spectralirradiance

Spectral irradiance/W m⁻² nm⁻¹

<model>.irradiance

Cumulative irradiance/W m⁻²

<model>.irradiance.fraction

Relative irradiance (0-1)

<model>.spectralphotonflux

Spectral photon flux/s⁻¹ m⁻² nm⁻¹

<model>.photonflux

Cumulative photon flux/s⁻¹ m⁻²

<model>.photonflux.fraction

Relative photon flux (0-1)

Examples

## Not run: 
    sunlight.ASTM()
    sunlight.ASTM(model = "AM0")
    sunlight.ASTM(wavelength = seq(400, 450, by = 0.1), model = "AM1.5G")
    sunlight.ASTM(wavelength = seq(500, 600, by = 1))

## End(Not run)

chepec/photoec documentation built on July 27, 2023, 11:33 a.m.