From 51a77b2ce59e1f8f8f788ab3e15c3cee22889f16 Mon Sep 17 00:00:00 2001 From: mjaviem Date: Mon, 24 Feb 2020 13:20:22 -0300 Subject: [PATCH] Replaces alpha with theta1 for returning the depression adjustment --- src/astral.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/astral.py b/src/astral.py index 77457b3..8049cf4 100644 --- a/src/astral.py +++ b/src/astral.py @@ -2819,12 +2819,7 @@ def _depression_adjustment(self, elevation): h1 = r + elevation theta1 = acos(a1 / h1) - a2 = r * sin(theta1) - b2 = r - (r * cos(theta1)) - h2 = sqrt(pow(a2, 2) + pow(b2, 2)) - alpha = acos(a2 / h2) - - return degrees(alpha) + return degrees(theta1) if __name__ == "__main__":