The function calculates the time of solar noon in hours as a function of the day of year and longitude (Campbell and Norman 1998) .

solar_noon(lon, doy, offset = NA)

Arguments

lon

numeric longitude (decimal degrees).

doy

numeric day of year (1-366). This can be obtained from a standard date via day_of_year.

offset

numeric number of hours to add to UTC (Coordinated Universal Time) to get local time (improves accuracy but not always necessary). Defaults to NA.

Value

numeric time of solar noon (hours).

References

Campbell GS, Norman JM (1998). Introduction to environmental biophysics, 2nd ed. edition. Springer, New York. ISBN 0387949372.

Examples

  solar_noon(lon = -122.335,
             doy = 112)
#> [1] 12.13232