Learn R Programming

lomb (version 2.5.0)

photoperiod: Computes photoperiod

Description

computes sunrise & sunset for day of year and location

Usage

photoperiod(dayofyear, latitude, longitude, zone = 0, twilight = "civil")

Value

sunrise

vector of sunrises

set

vector of sunsets

Arguments

dayofyear

day of ywar 1-366

latitude

e.g. 42.00

longitude

e.g. 9.00

zone

time zone e.g 1 (Vienna)

twilight

"rise/set", "civil" or "nautic"

References

http://lexikon.astronomie.info/zeitgleichung/

Examples

Run this code
photoperiod (180, 42,9, zone=1, twilight="civil")

Run the code above in your browser using DataLab