Learn R Programming

GeoLight (version 2.0.0)

refracted: Atmospheric Refraction

Description

Adjust the solar zenith angle for atmospheric refraction.

Usage

refracted(zenith)

Arguments

zenith
zenith angle (degrees) to adjust.

Value

vector of zenith angles (degrees) adjusted for atmospheric refraction.

Details

Given a vector of solar zeniths computed by zenith, refracted calculates the solar zeniths adjusted for the effect of atmospheric refraction.

unrefracted is the inverse of refracted. Given a (single) solar zenith adjusted for the effect of atmospheric refraction, unrefracted calculates the solar zenith as computed by zenith.

Examples

Run this code
## Refraction causes the sun to appears higher on the horizon
refracted(85:92)
## unrefracted gives unadjusted zenith (see SGAT)

Run the code above in your browser using DataLab