diff options
Diffstat (limited to 'sun.py')
-rw-r--r-- | sun.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,6 +27,6 @@ def sun_direction(lat, lon, time, time_diff, summertime_shift = 0): azimuth = np.arccos((np.cos(d) * np.sin(l) * np.cos(h) - np.sin(d) * np.cos(l)) / np.cos(altitude)) if h < 0: - return (altitude, -azimuth) - else: return (altitude, azimuth) + else: + return (altitude, -azimuth) |