R/timeOfSunset.R

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 1, 2019, 7:42 p.m.