Calculates solar elevation angle for the given date and time.

sol_elevation(...)

# S3 method for POSIXt
sol_elevation(datetime, lat, lon, ...)

# S3 method for weather_station
sol_elevation(weather_station, ...)

Arguments

...

Additional parameters passed to later functions.

datetime

POSIXt object (POSIXct, POSIXlt). See base::as.POSIXlt and base::strptime for conversion.

lat

Latitude in decimal degrees.

lon

Longitude in decimal degrees.

weather_station

Object of class weather_station.

Value

Solar elevation angle in degrees.