Skip to content

Commit 457df8e

Browse files
committed
Improved end time of P window for records with short S-P interval in _define_signal_and_noise_windows function.
(cherry picked from commit 500a91e)
1 parent 3438e09 commit 457df8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sourcespec/ssp_process_traces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def _define_signal_and_noise_windows(config, trace):
274274
# Signal window for spectral analysis (P phase)
275275
t1 = p_arrival_time - config.signal_pre_time
276276
t1 = max(trace.stats.starttime, t1)
277-
t2 = t1 + min(config.win_length, s_minus_p)
277+
t2 = t1 + min(config.win_length, s_minus_p + s_pre_time)
278278
trace.stats.arrivals['P1'] = ('P1', t1)
279279
trace.stats.arrivals['P2'] = ('P2', t2)
280280
# Noise window for spectral analysis

0 commit comments

Comments
 (0)