Commit c5f7a0f2 authored by Joseph Siddons's avatar Joseph Siddons
Browse files

fix: ensure lon is -180, 180 in Ellipse class

parent 4f6461e8
......@@ -240,6 +240,8 @@ class Ellipse:
self.a = a
self.b = b
self.lon = lon
if self.lon > 180:
self.lon = ((self.lon + 540) % 360) - 180
self.lat = lat
# theta is anti-clockwise angle from horizontal in radians
self.theta = theta
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment