calZenith | R Documentation |
Calculate zenith angle in degrees.
calZenith(dates, lon, lat, hour = FALSE)
dates |
vector of dates in the format yyyy-mm-dd (or 'yyyy-mm-dd HH:MM:SS'). If format yyyy-mm-dd is provided, the default hour is 12:00:00. |
lon |
value for the longitude of the location. |
lat |
value for the latitude of the location. |
hour |
logical. If TRUE, allow working with hourly data for zenith angle calculation. Default: FALSE (12 UTC is used). |
zenith angle in degrees
Anke Duguay-Tetzlaff, Translated to R by Ana Casanueva (17.01.2017)
## Not run: calZenith("1981-06-15", -5.66, 40.96) calZenith("1981-06-15 10:00:00", -5.66, 40.96, hour=TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.