Calculates the time of sunrise and sunset based on latitude and date.
Usage
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.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(LakeMetabolizer)
Loading required package: rLakeAnalyzer
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LakeMetabolizer/sun.rise.set.Rd_%03d_medium.png", width=480, height=480)
> ### Name: sun.rise.set
> ### Title: Calculates the time of sunrise and sunset
> ### Aliases: sun.rise.set
> ### Keywords: methods
>
> ### ** Examples
>
> sun.rise.set(lat=40.75,datetimes=as.POSIXlt('2013-03-31'))
[1] "2013-03-31 05:46:41 JST" "2013-03-31 18:13:18 JST"
>
>
>
>
>
> dev.off()
null device
1
>