Skip to content

Commit

Permalink
feat: added create_points()
Browse files Browse the repository at this point in the history
  • Loading branch information
rabii-chaarani committed Mar 4, 2024
1 parent d648285 commit daf5153
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions map2loop/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy
from math import radians, degrees, atan2, asin
from shapely.geometry import Point


def strike_dip_vector(strike, dip):
Expand Down Expand Up @@ -66,3 +67,11 @@ def normal_vector_to_dipdirection_dip(nx, ny, nz):
dipdir = dipdir % 360

return dip, dipdir


def create_points(xy):
points = []
for x, y in xy:
point = Point(x, y)
points.append(point)
return points

0 comments on commit daf5153

Please sign in to comment.