sun.rise.set: Calculates the time of sunrise and sunset

Description Usage Arguments Value Author(s) References See Also Examples

Description

Calculates the time of sunrise and sunset based on latitude and date.

Usage

1
sun.rise.set(datetimes, lat)

Arguments

datetimes

Vector of dates as POSIXct or POSIXlt (see DateTimeClasses) format

lat

Single latitude value of site. South should be negative, north positive

Value

A 2-column matrix, first column sunrise, second column sunset, as POSIXct format. Value is NA when there is no defined sunrise or sunset for that day (winter/summer at high and low latitudes).

Author(s)

Luke A. Winslow

References

Iqbal, Muhammad. 1983. An Introduction to Solar Radiation. Elsevier.

See Also

is.night is.day

Examples

1
sun.rise.set(lat=40.75,datetimes=as.POSIXlt('2013-03-31'))

clairervh/LakeMetabolizer documentation built on May 12, 2019, 2:05 p.m.