Skip to content

Commit

Permalink
hide geod function
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Wu committed Oct 21, 2024
1 parent 7bd90f7 commit 81cb3c4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ecoscope/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,14 +627,11 @@ def dist_meters(self):
return distance

@property
def geodetic_displacement(self):
def nsd(self):
start_point = df["geometry"].iloc[0]
geod = Geod(ellps="WGS84")
return [geod.inv(start_point.x, start_point.y, geo.x, geo.y)[2] for geo in df["_geometry"]]

@property
def nsd(self):
return [(x**2) / (1000 * 2) for x in self.geodetic_displacement]
geod_displacement = [geod.inv(start_point.x, start_point.y, geo.x, geo.y)[2] for geo in df["_geometry"]]
return [(x**2) / (1000 * 2) for x in geod_displacement]

@property
def timespan_seconds(self):
Expand Down

0 comments on commit 81cb3c4

Please sign in to comment.