From 4f67e3e31ac8662cf47c117a742c7ae45bad2180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 11 Nov 2015 13:58:25 +0100 Subject: [PATCH] Debuged: Checks additionally for component 3 if component Z not available. --- pylot/core/pick/autopick.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 5a5cc4e5..4e943299 100755 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -11,6 +11,7 @@ function conglomerate utils. import matplotlib.pyplot as plt import numpy as np +import pdb from scipy import integrate from pylot.core.pick.Picker import AICPicker, PragPicker from pylot.core.pick.CharFuns import HOScf, AICcf, ARZcf, ARHcf, AR3Ccf @@ -28,7 +29,6 @@ def autopickevent(data, param): wdttolerance = param.getParam('wdttolerance') mdttolerance = param.getParam('mdttolerance') iplot = param.getParam('iplot') - for n in range(len(data)): station = data[n].stats.station if station not in stations: @@ -141,6 +141,8 @@ def autopickstation(wfstream, pickparam): # split components zdat = wfstream.select(component="Z") + if len(zdat) == 0: # check for other components + zdat = wfstream.select(component="3") edat = wfstream.select(component="E") if len(edat) == 0: # check for other components edat = wfstream.select(component="2")