Continuous wavelet transform for time series with cross wavelet transform, coherence, phase, and plotting.

901 views
Skip to first unread message

srbt...@gmail.com

unread,
Feb 6, 2019, 11:33:36 AM2/6/19
to PyWavelets
For a geophysical project I wanted to use wavelet transforms of time series and to do cross wavelet transforms to compare to signals. I had used the package pycwt before, but I found the options unnecessarily complicated for my application and the inner workings difficult to understand and hard to adapt to new problems. Therefore, I wrote some of my own using the pywavelets cwt functions.

For those interested, I am sharing the code I created to compute spectrograms, cross wavelet spectrograms, cross wavelet coherence, and cross-wavelet phase for time series.

You can find the jupyter notebook here containing it all, along with examples:



Please ... If you find this useful, let me know and if you find errors or problems, please help me understand them and correct them.

Thanks,

Stephen Brown

Gregory Lee

unread,
Feb 7, 2019, 8:53:37 AM2/7/19
to PyWavelets
Thanks Stephen!  We have had queries about doing wavelet coherence before (see https://github.com/PyWavelets/pywt/issues/370), but don't currently have a developer working on extending CWT functionality. If you are would be interested in potentially contributing this sort of thing to PyWavelets itself, please feel free to open an issue or pull request on GitHub.
Reply all
Reply to author
Forward
0 new messages