Dear all,
Tahnk you for the time you spend reading it,
When I had the obspy.0.9 version the cross-correlation worked fine, since I updated to V1.1.0 i git an erro when I tried to re run my script I am working in windows 10 with python 2.7
I have two waveforms from a seismic swarm, I cut them before P phase just a few mili seconds (they are in SAC format).
I applied the scritp from the Obspy tutorial:
m=read(‘EV5_1s_LPAZ_Z*’)[0] #master
s=read(‘EV2_1s_LPAZ_Z*’)[0] #slave
tm=obspy.UTCDateTime(‘2016-12-14T19:33:37.3Z’)
ts=obspy.UTCDateTime(‘2016-10-20T11:18:26.1Z’)
dt, coeff = xcorr_pick_correction(tm, m, ts, s, 0.05, 0.7, 0.3, plot=True,
filter=“bandpass”,
filter_options={‘freqmin’: 0.8, ‘freqmax’: 3.5})
Before the update with the same vales it worked well, attach the figure before the update.
After the update I got an error.
warnings.warn(msg)
UserWarning: Artifacts from signal processing possible. Trace 0 should have more additional data at the start.
Warning (from warnings module):
File “C:\Python27\lib\site-packages\obspy\signal\cross_correlation.py”, line 451
warnings.warn(msg)
UserWarning: Artifacts from signal processing possible. Trace 0 should have more additional data at the end.
Traceback (most recent call last):
File “G:+0n1nO_python_obspy_scripts\python_correlation\corrsig.py”, line 35, in
filter_options={‘freqmin’: 0.8, ‘freqmax’: 3.5})
File “C:\Python27\lib\site-packages\obspy\signal\cross_correlation.py”, line 440, in xcorr_pick_correction
raise Exception(msg)
Exception: Trace 1 starts too late.
I modofied the t_before and t_after and it is the same.
Thank you a lot for yoor time.
Gonzalo
EV1_1s_LPAZ_Z.sac (828 Bytes)
EV5_1s_LPAZ_Z.sac (828 Bytes)