Debuged: Checks additionally for component 3 if component Z not available.

This commit is contained in:
Ludger Küperkoch 2015-11-11 13:58:25 +01:00
parent 02dbca06f2
commit 4f67e3e31a

View File

@ -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")