Calculates the time of sunrise and sunset based on latitude and date.
Arguments
- date
Vector of dates in
Date
format.- latitude
Single latitude value of site. South should be negative, North positive
Examples
calc_sun_rise_set(latitude=40.75,
date=as.POSIXlt(c('2013-03-31', '2017-07-01')))
#> Warning: submit a GitHub issue if you want calc_sun_rise_set() to stick around
#> sunrise sunset
#> 1 2013-03-31 05:46:41 2013-03-31 18:13:18
#> 2 2017-07-01 04:33:24 2017-07-01 19:26:35