diff options
author | Mattias Andrée <maandree@kth.se> | 2016-06-23 21:50:38 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-06-23 21:50:38 +0200 |
commit | 36b2de11be28d2e218faaa76f91599b550277dd2 (patch) | |
tree | 6ecd371c323bf311f94917a63eb4188024c28d68 /src | |
parent | m (diff) | |
download | solar-python-36b2de11be28d2e218faaa76f91599b550277dd2.tar.gz solar-python-36b2de11be28d2e218faaa76f91599b550277dd2.tar.bz2 solar-python-36b2de11be28d2e218faaa76f91599b550277dd2.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/solar_python.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |