Consistent calculation of SNR, using maximum (not mean) of signal window, more stable!

This commit is contained in:
Ludger Küperkoch 2018-06-26 11:58:08 +02:00
parent 88ddbc1efc
commit f43478d0c0

View File

@ -239,7 +239,7 @@ class AICPicker(AutoPicker):
print(msg)
return
# calculate SNR from CF
self.SNR = max(abs(self.Data[0].data[isignal] - np.mean(self.Data[0].data[isignal]))) / \
self.SNR = max(abs(self.Data[0].data[isignal])) / \
max(abs(self.Data[0].data[inoise] - np.mean(self.Data[0].data[inoise])))
# calculate slope from CF after initial pick
# get slope window