From 82ac08157c081e2219d9e31a28d14f246c9d0a06 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Tue, 10 Jul 2018 21:41:07 +0200 Subject: [PATCH] =?UTF-8?q?[bugfix]=20azimuth=20<45=C2=B0=20was=20misattri?= =?UTF-8?q?buted=20as=20E=20instead=20of=20N=20trace=20in=20check4rotated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pylot/core/util/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index a973f622..06388a0d 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -1024,7 +1024,7 @@ def check4rotated(data, metadata=None, verbosity=1): for trace_id in trace_ids: dip, az = get_dip_azimut(parser, trace_id) trace = wfstream.select(id=trace_id)[0] - if az > 315 and az <= 45 or az > 135 and az <= 225: + if az > 315 or az <= 45 or az > 135 and az <= 225: trace.data = n trace.stats.channel = trace.stats.channel[0:-1] + 'N' elif az > 45 and az <= 135 or az > 225 and az <= 315: