Calculating sunset hour angle (ws) according to Allen Eq. 25.

cal_sunset_angle(lat, J)

ws2ssd(ws)

cal_ssd(lat, J)

Arguments

lat

Latitude [degree].

J

doy vector.

ws

sunset hour angle