R/timeOfSunrise.R

timeOfSunrise <-
  function(lat,i) {
    sr <- 12 - dayLength(lat,i)/2
    if (dayLength(lat,i) == 0 ) sr <- NA
    sr
  }

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.