From 36b2de11be28d2e218faaa76f91599b550277dd2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 23 Jun 2016 21:50:38 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/solar_python.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/solar_python.py b/src/solar_python.py index a12f18d..6e93621 100644 --- a/src/solar_python.py +++ b/src/solar_python.py @@ -794,9 +794,9 @@ def sunrise_equation(latitude, longitude, t = None): solar_mean_anomaly = int(357.5291 + 0.98560028 * (j_cycle - 2451545)) % 360 # Calculate solar equation of centre - equation_of_centre = 1.9148 * sin(1 * solar_mean_anomaly) - equation_of_centre += 0.0200 * sin(2 * solar_mean_anomaly) - equation_of_centre += 0.0003 * sin(3 * solar_mean_anomaly) + equation_of_centre = 1.9148 * math.sin(1 * solar_mean_anomaly) + equation_of_centre += 0.0200 * math.sin(2 * solar_mean_anomaly) + equation_of_centre += 0.0003 * math.sin(3 * solar_mean_anomaly) # Calculate solar ecliptic longitude ecliptic_longitude = (solar_mean_anomaly + 102.9372 + equation_of_centre + 180) % 360 -- cgit v1.2.3-70-g09d2