computeIsDayByHour: computeIsDayByHour

Description Usage Arguments Value Author(s)

View source: R/utilSolarTime.R

Description

tell for each date, whether its daytime

Usage

1
2
computeIsDayByHour(date, sunriseHour = 7, 
    sunsetHour = 18, duskOffset = 0)

Arguments

date

POSIXct vector

sunriseHour

sunrise as fractional hour (0..24) (vector of length date or length 1)

sunsetHour

sunset as fractional hour (vector of length date or length 1)

duskOffset

integer scalar: time in hours after dusk for which records are still regarded as day

Value

logical vector (length(date)): true if its daytime

Author(s)

Thomas Wutzler


solartime documentation built on April 22, 2021, 5:10 p.m.