Marginal changes only.

This commit is contained in:
Ludger Küperkoch 2015-05-29 16:28:50 +02:00
parent 6c73e30754
commit 0b6b7a7aed

View File

@ -11,7 +11,6 @@
import numpy as np import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from obspy.core import Stream from obspy.core import Stream
import pdb
def earllatepicker(X, nfac, TSNR, Pick1, iplot=None): def earllatepicker(X, nfac, TSNR, Pick1, iplot=None):
@ -79,8 +78,8 @@ def earllatepicker(X, nfac, TSNR, Pick1, iplot=None):
diffti_te = Pick1 - EPick diffti_te = Pick1 - EPick
PickError = (diffti_te + 2 * diffti_tl) / 3 PickError = (diffti_te + 2 * diffti_tl) / 3
if iplot is not None: if iplot > 1:
plt.figure(iplot) p = plt.figure(iplot)
p1, = plt.plot(t, x, 'k') p1, = plt.plot(t, x, 'k')
p2, = plt.plot(t[inoise], x[inoise]) p2, = plt.plot(t[inoise], x[inoise])
p3, = plt.plot(t[isignal], x[isignal], 'r') p3, = plt.plot(t[isignal], x[isignal], 'r')
@ -107,7 +106,7 @@ def earllatepicker(X, nfac, TSNR, Pick1, iplot=None):
X[0].stats.station) X[0].stats.station)
plt.show() plt.show()
raw_input() raw_input()
plt.close(iplot) plt.close(p)
return EPick, LPick, PickError return EPick, LPick, PickError
@ -238,7 +237,7 @@ def fmpicker(Xraw, Xfilt, pickwin, Pick, iplot=None):
elif P1[0] > 0 and P2[0] <= 0: elif P1[0] > 0 and P2[0] <= 0:
FM = '+' FM = '+'
if iplot is not None: if iplot > 1:
plt.figure(iplot) plt.figure(iplot)
plt.subplot(2, 1, 1) plt.subplot(2, 1, 1)
plt.plot(t, xraw, 'k') plt.plot(t, xraw, 'k')