Skip to content

Commit

Permalink
degree values from calculations that lie outside of the normal range …
Browse files Browse the repository at this point in the history
…are now corrected
  • Loading branch information
tobias47n9e committed Apr 17, 2015
1 parent 9c7a239 commit 85b1c1b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions innstereo/main_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,13 +1223,31 @@ def add_planar_feature(self, datastore, dip_direct=0, dip=0, sense=""):
Adds a planar feature row. Defaults to an empty row unless a dip
direction and dip are given.
"""
while dip_direct > 360:
dip_direct = dip_direct - 360
while dip_direct < 0:
dip_direct = dip_direct + 360
while dip > 90:
dip = dip - 90
while dip < 0:
dip = dip + 90

datastore.append([dip_direct, dip, sense])

def add_linear_feature(self, datastore, dip_direct=0, dip=0, sense=""):
"""
Adds a linear feature row. Defaults to an empty row unless a dip
direction and dip are given.
"""
while dip_direct > 360:
dip_direct = dip_direct - 360
while dip_direct < 0:
dip_direct = dip_direct + 360
while dip > 90:
dip = dip - 90
while dip < 0:
dip = dip + 90

datastore.append([dip_direct, dip, sense])

def add_faultplane_feature(self, datastore, dip_direct = 0, dip = 0,
Expand Down

0 comments on commit 85b1c1b

Please sign in to comment.