R/timeOfSunrise.R

Defines functions timeOfSunrise

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 2, 2019, 4:41 p.m.