pycwt icon indicating copy to clipboard operation
pycwt copied to clipboard

icwt can't produce the same waveform

Open ray306 opened this issue 5 years ago • 3 comments

import pycwt as wavelet
dt=0.002
mother = wavelet.DOG()
coefs, scales, freqs, coi, fft, fftfreqs = wavelet.cwt(wave, dt,
                                                      mother,freqs=np.arange(2,10,0.2))
iwave = wavelet.icwt(coefs, scales, dt, scales[0]-scales[1], mother)

The waveform changed a lot

ray306 avatar May 22 '19 12:05 ray306

This is caused by a mistake in line 169 of wavelet.py. There is already a pull request (#29) for this bug. However, it has not been incorporated yet.

jorgman1 avatar Nov 21 '19 09:11 jorgman1

There is an example of reconstruction in the tutorial, and after looking at the output picture it is true that it is not fully reconstructed. But after fixing the bug following pull request ( #29 ), the reconstructed waveform still has a different amplitude from the original waveform. Can anyone help me?

hellolzc avatar Oct 20 '21 05:10 hellolzc

There is an example of reconstruction in the tutorial, and after looking at the output picture it is true that it is not fully reconstructed. But after fixing the bug following pull request ( #29 ), the reconstructed waveform still has a different amplitude from the original waveform. Can anyone help me?

I also met this problem after fixing the bug following PR( #29 ). Have you solved it? Thanks a lot.

beta-yang avatar Dec 02 '21 03:12 beta-yang