[bugfix] 3 comp. window, time correction for trace overdone

This commit is contained in:
Marcel Paffrath 2017-06-06 11:16:57 +02:00
parent 530a629d15
commit 86c76c6f61
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
f7af-dirty
530a-dirty

View File

@ -997,7 +997,7 @@ class PickDlg(QDialog):
# remove mean noise level from waveforms
for trace in data:
t = prepTimeAxis(trace.stats.starttime - stime, trace)
inoise = getnoisewin(t, ini_pick-stime_diff, noise_win, gap_win)
inoise = getnoisewin(t, ini_pick, noise_win, gap_win)
trace = demeanTrace(trace=trace, window=inoise)
self.setXLims([ini_pick - x_res, ini_pick + x_res])
@ -1049,7 +1049,7 @@ class PickDlg(QDialog):
# prepare plotting of data
for trace in data:
t = prepTimeAxis(trace.stats.starttime - stime, trace)
inoise = getnoisewin(t, ini_pick-stime_diff, noise_win, gap_win)
inoise = getnoisewin(t, ini_pick, noise_win, gap_win)
trace = demeanTrace(trace, inoise)
# scale waveform for plotting