From a95caa5efc4a164c9172edbf26fab11d402b62a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 19 Jun 2015 15:48:04 +0200 Subject: [PATCH] Weight 9 now for skiped S onsets, turned rank warning off. --- pylot/core/pick/utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 5dc320ec..e252e255 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -11,7 +11,7 @@ import numpy as np import matplotlib.pyplot as plt from obspy.core import Stream, UTCDateTime - +import warnings def earllatepicker(X, nfac, TSNR, Pick1, iplot=None): ''' @@ -133,6 +133,8 @@ def fmpicker(Xraw, Xfilt, pickwin, Pick, iplot=None): :type: int ''' + warnings.simplefilter('ignore', np.RankWarning) + assert isinstance(Xraw, Stream), "%s is not a stream object" % str(Xraw) assert isinstance(Xfilt, Stream), "%s is not a stream object" % str(Xfilt) @@ -440,10 +442,10 @@ def wadaticheck(pickdic, dttolerance, iplot): ii += 1 # check, if deviation is larger than adjusted if wddiff >= dttolerance: - # mark onset and downgrade S-weight to 4 + # mark onset and downgrade S-weight to 9 # (not used anymore) marker = 'badWadatiCheck' - pickdic[key]['S']['weight'] = 4 + pickdic[key]['S']['weight'] = 9 else: marker = 'goodWadatiCheck' checkedPpick = UTCDateTime(pickdic[key]['P']['mpp']) - \ @@ -475,7 +477,6 @@ def wadaticheck(pickdic, dttolerance, iplot): wfitflag = 1 # plot results - iplot = 2 if iplot > 1: f = plt.figure(iplot) f1, = plt.plot(Ppicks, SPtimes, 'ro')