[obspy-users] Cross-Correlation not working after update

Tom Eulenfeld tom.eulenfeld at gmail.com
Mon Nov 13 00:39:29 CET 2017


Hi Gonzalo,

in the script you read in events 5 and 2, but you sent only data for events
1 and 5.

If I change your code to read in event 1, the defined pick time is too late
and I get the same error.

Can you double check and provide the data for event 1?

Best regards,
Tom

On Fri, Nov 10, 2017 at 9:06 PM, gonzalo antonio fernandez marañon <
tonino.gafm at gmail.com> wrote:

> 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 <module>
>     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.
> [image: Imágenes integradas 1]
>
> Thank you a lot for yoor time.
> Gonzalo
>
> _______________________________________________
> obspy-users mailing list
> obspy-users at lists.swapbytes.de
> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20171113/9b787d8c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LPAZ_Corr5-1.png
Type: image/png
Size: 63258 bytes
Desc: not available
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20171113/9b787d8c/attachment-0001.png>


More information about the obspy-users mailing list