From 15b245c2e82c26351cbc73ea0deb5d4b2dcc7b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Mon, 1 Jun 2015 16:30:22 +0200 Subject: [PATCH] Debuging, temporary solved problems occuring when reading channels of not oriented sondes (channels 1/2). --- pylot/core/pick/run_autopicking.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pylot/core/pick/run_autopicking.py b/pylot/core/pick/run_autopicking.py index 7660cdec..ea54490a 100755 --- a/pylot/core/pick/run_autopicking.py +++ b/pylot/core/pick/run_autopicking.py @@ -17,8 +17,6 @@ from pylot.core.pick.Picker import * from pylot.core.pick.CharFuns import * from pylot.core.pick import utils -import pdb - def run_autopicking(wfstream, pickparam): ''' @@ -185,7 +183,7 @@ def run_autopicking(wfstream, pickparam): else: print 'Bad initial (AIC) P-pick, skip this onset!' - print 'AIC-SNR=%f, AIC-Slope=%f' % (aicpick.getSNR(), aicpick.getSlope()) + print 'AIC-SNR=', aicpick.getSNR(), 'AIC-Slope=', aicpick.getSlope() Pweight = 4 Sweight = 4 FM = 'N' @@ -199,7 +197,7 @@ def run_autopicking(wfstream, pickparam): print 'run_autopicking: No vertical component data available, skipping station!' return - if edat is not None and ndat is not None and Pweight < 4: + if edat is not None and ndat is not None and len(edat) > 0 and len(ndat) > 0 and Pweight < 4: print 'Go on picking S onset ...' print '##################################################' print 'Working on S onset of station %s' % edat[0].stats.station @@ -349,14 +347,14 @@ def run_autopicking(wfstream, pickparam): else: print 'Bad initial (AIC) S-pick, skip this onset!' - print 'AIC-SNR=%f, AIC-Slope=%f' % (aicarhpick.getSNR(), aicarhpick.getSlope()) + print 'AIC-SNR=', aicarhpick.getSNR(), 'AIC-Slope=', aicarhpick.getSlope() Sweight = 4 SNRS = None SNRSdB = None aicSflag = 0 else: - print 'run_autopicking: No horizontal component data available, skipping S picking!' + print 'run_autopicking: No horizontal component data available or bad P onset, skipping S picking!' return ##############################################################