Skip to content

Commit 2496dd3

Browse files
committed
Slight correction to inclination measurement (theoretically)
1 parent ca3f947 commit 2496dd3

File tree

1 file changed

+3
-2
lines changed
  • src/instrumentman/inclination

1 file changed

+3
-2
lines changed

src/instrumentman/inclination/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def main_calc(
114114
cross = Angle(float(fields[1]) / 3600, 'deg')
115115
length = Angle(float(fields[2]) / 3600, 'deg')
116116

117-
coord = Coordinate(tan(cross), tan(length), 1)
117+
coord = Coordinate(tan(cross), tan(length), 1).normalized()
118118
bearing, inclination, s = coord.to_polar()
119119

120120
points.append(
@@ -127,13 +127,14 @@ def main_calc(
127127

128128
x, x_dev = adjust_uniform_single([p.x for p in points])
129129
y, y_dev = adjust_uniform_single([p.y for p in points])
130+
z, _ = adjust_uniform_single([p.z for p in points])
130131

131132
inc_x = degrees(atan(x)) * 3600
132133
inc_y = degrees(atan(y)) * 3600
133134
inc_x_dev = degrees(atan(x_dev)) * 3600
134135
inc_y_dev = degrees(atan(y_dev)) * 3600
135136

136-
direction, inc, _ = Coordinate(x, y, 1).to_polar()
137+
direction, inc, _ = Coordinate(x, y, z).to_polar()
137138

138139
if output is None:
139140
echo(f"""Axis aligned:

0 commit comments

Comments
 (0)