[bugfix] 3 comp. window, time correction for trace overdone
This commit is contained in:
parent
530a629d15
commit
86c76c6f61
@ -1 +1 @@
|
|||||||
f7af-dirty
|
530a-dirty
|
||||||
|
@ -997,7 +997,7 @@ class PickDlg(QDialog):
|
|||||||
# remove mean noise level from waveforms
|
# remove mean noise level from waveforms
|
||||||
for trace in data:
|
for trace in data:
|
||||||
t = prepTimeAxis(trace.stats.starttime - stime, trace)
|
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)
|
trace = demeanTrace(trace=trace, window=inoise)
|
||||||
|
|
||||||
self.setXLims([ini_pick - x_res, ini_pick + x_res])
|
self.setXLims([ini_pick - x_res, ini_pick + x_res])
|
||||||
@ -1049,7 +1049,7 @@ class PickDlg(QDialog):
|
|||||||
# prepare plotting of data
|
# prepare plotting of data
|
||||||
for trace in data:
|
for trace in data:
|
||||||
t = prepTimeAxis(trace.stats.starttime - stime, trace)
|
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)
|
trace = demeanTrace(trace, inoise)
|
||||||
|
|
||||||
# scale waveform for plotting
|
# scale waveform for plotting
|
||||||
|
Loading…
Reference in New Issue
Block a user