Skip to content

Commit

Permalink
Merge e82edb9 into 4a5bac9
Browse files Browse the repository at this point in the history
  • Loading branch information
sdhiscocks committed Mar 16, 2019
2 parents 4a5bac9 + e82edb9 commit fa5d303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymap3d/ecef.py
Expand Up @@ -219,6 +219,7 @@ def ecef2geodetic(x: float, y: float, z: float,
# inside ellipsoid?
with np.errstate(invalid='ignore'):
inside = x**2 / ell.a**2 + y**2 / ell.a**2 + z**2 / ell.b**2 < 1
inside = np.atleast_1d(inside)
alt[inside] = -alt[inside]

if deg:
Expand Down

0 comments on commit fa5d303

Please sign in to comment.