From 46ab4a8cd50e44bbb6c27fcefea15cb575045e57 Mon Sep 17 00:00:00 2001 From: pcain-usgs <pcain@usgs.gov> Date: Wed, 27 May 2020 12:47:28 -0600 Subject: [PATCH] Perform meridian check --- geomagio/residual/Calculation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geomagio/residual/Calculation.py b/geomagio/residual/Calculation.py index e5a770bf9..d615f69e1 100644 --- a/geomagio/residual/Calculation.py +++ b/geomagio/residual/Calculation.py @@ -152,6 +152,8 @@ def calculate_D_absolute( # for diagnostics if average_mark > 180: average_mark -= 90 + if meridian > 180: + meridian -= 90 return ( Absolute( @@ -165,7 +167,7 @@ def calculate_D_absolute( average_mark, south_meridian, mark_azimuth, - (meridian - average_mark), + (average_mark - meridian), ) -- GitLab