R/timeOfSunset.R

Defines functions timeOfSunset

timeOfSunset <-
  function(lat,i) {
    ss <- 12 + dayLength(lat,i)/2
    if (dayLength(lat,i) == 0 ) ss <- NA
    ss
  }

Try the sirad package in your browser

Any scripts or data that you put into this service are public.

sirad documentation built on May 2, 2019, 4:41 p.m.