zenith: Calculate the zenith angle.

Description Usage Arguments Details Value

Description

Calculate the zenith angle.

Usage

1
zenith(dayofyear, year, tz, latitude, longitude, interval = 1L)

Arguments

dayofyear

Numeric vector containing the day of year(s), for which the zenith angle should be calculated.

year

Numeric vector containing the year(s) for which the zenith angle sould be calculated.

tz

UTC Offset. Ex: Eastern Standard Time = -5.

latitude

Latitude of the location at which the zenith angle is to be calculated.

longitude

Longitude of the location at which the zenith angle is to be calculated.

interval

Number of minutes between zenith angle calculations. Defaults to (every minute). Must be an integer between 1 and 60, inclusive.

Details

zenith is vectorized over both dayofyear and year, with the shorter vector being recycled as usual.

Value

A single vector of the zenith angles at each interval throughout the specified time period (i.e. a vector of length (60 * 24 / interval) * number of days).


dslaw/clearskies documentation built on May 15, 2019, 4:21 p.m.