calZenith: Calculate zenith angle in degrees.

View source: R/calZenith.R

calZenithR Documentation

Calculate zenith angle in degrees.

Description

Calculate zenith angle in degrees.

Usage

calZenith(dates, lon, lat, hour = FALSE)

Arguments

dates

vector of dates in the format yyyy-mm-dd (or 'yyyy-mm-dd HH:MM:SS'). If format yyyy-mm-dd is provided, the default hour is 12:00:00.

lon

value for the longitude of the location.

lat

value for the latitude of the location.

hour

logical. If TRUE, allow working with hourly data for zenith angle calculation. Default: FALSE (12 UTC is used).

Value

zenith angle in degrees

Author(s)

Anke Duguay-Tetzlaff, Translated to R by Ana Casanueva (17.01.2017)

Examples

## Not run:  
calZenith("1981-06-15",  -5.66, 40.96)
calZenith("1981-06-15 10:00:00",  -5.66, 40.96, hour=TRUE)

## End(Not run)


anacv/HeatStress documentation built on Aug. 9, 2022, 2:36 p.m.