pycwt icon indicating copy to clipboard operation
pycwt copied to clipboard

Inconsistent results?

Open lovechang1986 opened this issue 6 years ago • 1 comments

I copy the code to notebook on my machine and tested. The result as this png: test As the official result is: sample_nino3 pycwt document

The biggest difference is the minimum value of the original data from document is letter than -2, but my test is greater than -2? Is that why they had inconsistent results?

lovechang1986 avatar Jun 13 '18 08:06 lovechang1986

The difference between the two plots arises in this step of the tutorial

Optionally, we could also rectify the power spectrum according to the suggestions proposed by Liu et al. (2007)[2] power /= scales[:, None]

Removing this optional step will give the official result for the Nino-3 SST example. However, see Liu et al. (2007) for a discussion of bias in power spectra given by traditional wavelet analysis. Their Figure 4 specifically addresses the difference between these two plots.

tompc35 avatar Dec 31 '18 03:12 tompc35