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

Calculate south facing meridian

parent b45df86f
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !33. Comments created here will be created in the context of that merge request.
......@@ -125,6 +125,22 @@ def calculate_D_absolute(
for m in declination_measurements
]
)
# calculate south-facing meridian for diagnostics
south_meridian = np.average(
[
m.angle
+ np.degrees(
m.measurement_type.meridian
* (np.arcsin(m.residual / np.sqrt((m.h + h_baseline) ** 2 + m.e ** 2)))
)
- np.degrees(np.arctan(m.e / (m.h + h_baseline)))
for m in [
average_measurement(measurements, [t])
for t in [mt.SOUTH_UP, mt.SOUTH_DOWN]
]
]
)
mark_azimuth = azimuth
shift = 0
if azimuth > 180:
......@@ -149,9 +165,9 @@ def calculate_D_absolute(
endtime=mean.endtime,
),
average_mark,
meridian,
south_meridian,
mark_azimuth,
(average_mark - meridian),
(meridian - average_mark),
)
......
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