calc_sun_rise_set: Calculates the time of sunrise and sunset

View source: R/calc_sun_rise_set.R

calc_sun_rise_setR Documentation

Calculates the time of sunrise and sunset

Description

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

Usage

calc_sun_rise_set(date, latitude)

Arguments

date

Vector of dates in Date format.

latitude

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

Value

data.frame of sunrise and sunset (apparent solar time, nominally UTC)

See Also

calc_is_daytime

Examples

calc_sun_rise_set(latitude=40.75, 
  date=as.POSIXlt(c('2013-03-31', '2017-07-01')))

USGS-R/streamMetabolizer documentation built on Aug. 15, 2023, 7:50 a.m.