From e664850c7e32b03cef7ce0404a23d6bb8d4b1aa3 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 25 Oct 2023 01:48:35 +0200 Subject: [PATCH] Cleanup --- sbapp/sideband/geo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sbapp/sideband/geo.py b/sbapp/sideband/geo.py index 0900529..0932607 100644 --- a/sbapp/sideband/geo.py +++ b/sbapp/sideband/geo.py @@ -165,13 +165,11 @@ def ellipsoid_distance(c1, c2): def azalt(c1, c2, ellipsoid=True): c2rp = rotate_globe(c1, c2, ellipsoid=ellipsoid) - print(str(c2rp)) - altitude = None azimuth = None if (c2rp[2]*c2rp[2]) + (c2rp[1]*c2rp[1]) > 1e-6: theta = degrees(atan2(c2rp[2], c2rp[1])) - azimuth = 90.0 - theta + azimuth = 270 - theta if azimuth < 0: azimuth += 360 if azimuth > 360: azimuth -= 360 azimuth = round(azimuth,4)