pycwt
pycwt copied to clipboard
icwt can't produce the same waveform
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
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.
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?
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.