Debuged slope determination [counts/s] within AICPicker.
This commit is contained in:
parent
ac7d239b40
commit
cfca52e576
@ -18,6 +18,7 @@ calculated after Diehl & Kissling (2009).
|
|||||||
|
|
||||||
:author: MAGS2 EP3 working group / Ludger Kueperkoch
|
:author: MAGS2 EP3 working group / Ludger Kueperkoch
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
from pylot.core.pick.utils import getnoisewin, getsignalwin
|
from pylot.core.pick.utils import getnoisewin, getsignalwin
|
||||||
@ -245,8 +246,7 @@ class AICPicker(AutoPicking):
|
|||||||
if datafit[0] >= datafit[len(datafit) - 1]:
|
if datafit[0] >= datafit[len(datafit) - 1]:
|
||||||
print 'AICPicker: Negative slope, bad onset skipped!'
|
print 'AICPicker: Negative slope, bad onset skipped!'
|
||||||
return
|
return
|
||||||
|
self.slope = 1 / tslope * (datafit[len(dataslope) - 1] - datafit[0])
|
||||||
self.slope = 1 / tslope * datafit[len(dataslope) - 1] - datafit[0]
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.SNR = None
|
self.SNR = None
|
||||||
|
Loading…
Reference in New Issue
Block a user