Skip to content

Commit

Permalink
Adds string describing coordinate point when printed
Browse files Browse the repository at this point in the history
  • Loading branch information
teubert committed Dec 20, 2023
1 parent 951cdfc commit 8845332
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/progpy/utils/traj_gen/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ def __init__(self, lat0, lon0, alt0):
self.lon0 = lon0
self.alt0 = alt0
self.N0 = self.a / np.sqrt(1 - self.e**2.0 * np.sin(self.lat0)**2.0) # [m], Radius of curvature on the Earth

def __str__(self):
return f'coordinate at {np.abs(self.lat0)}{"°N" if (np.sign(self.lat0) >= 0) else "°S"} {np.abs(self.lon0)}{"°E" if (np.sign(self.lon0) >= 0) else "°W"} and {self.alt0}m elevation'

def ecef2enu(self, xecef, yecef, zecef):
"""
Expand Down

0 comments on commit 8845332

Please sign in to comment.