Skip to content
Snippets Groups Projects
Commit 45a8ae20 authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Derive rotation factor from measurements

parent 150a5fcf
No related branches found
No related tags found
No related merge requests found
...@@ -242,16 +242,13 @@ def calculate_scale_value( ...@@ -242,16 +242,13 @@ def calculate_scale_value(
""" """
inclination_radians = np.radians(inclination) inclination_radians = np.radians(inclination)
m1, m2 = measurements[0], measurements[-1] m1, m2 = measurements[0], measurements[-1]
field_change = ( field_change = np.degrees(
np.degrees( (
( -np.sin(inclination_radians) * (m2.h - m1.h)
-np.sin(inclination_radians) * (m2.h - m1.h) + np.cos(inclination_radians) * (m2.z - m1.z)
+ np.cos(inclination_radians) * (m2.z - m1.z)
)
/ corrected_f
) )
+ 0.1668 / corrected_f
) ) + (m2.angle - m1.angle)
residual_change = m2.residual - m1.residual residual_change = m2.residual - m1.residual
scale_value = corrected_f * field_change / np.abs(residual_change) scale_value = corrected_f * field_change / np.abs(residual_change)
return scale_value return scale_value
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment