regeirk / pycwt

A Python module for continuous wavelet spectral analysis. It includes a collection of routines for wavelet transform and statistical analysis via FFT algorithm. In addition, the module also includes cross-wavelet transforms, wavelet coherence tests and sample scripts.
http://regeirk.github.io/pycwt/
Other
293 stars 104 forks source link

AR1 Warning: Cannot place an upperbound on the unbiased AR(1). Series is too short or trend is to large. #40

Open shenghwa opened 2 years ago

shenghwa commented 2 years ago

When I want to replace the nan values of the dataset with mean value, sometimes it will raise the warning. I can't tell the difference between the problematic data and the normal data. If I use zero or mean/2, this warning will not raise. Does anyone meet this issue?

claytonjschneider commented 1 year ago

I have this issue as well

claytonjschneider commented 1 year ago

I also see a slight discrepancy between the github master repo and the latest pip install (from today), where the 'if sig:' line in wct occurs after the autoregressive function. So even though I'm giving wct sig=False, it triggers, and fails

claytonjschneider commented 1 year ago

I know this is absolutely horrible practice, but I'm going to move the if sig line up above the ar calculations in my pip's version of 'wavelet.py' and see if that fixes it for me, since I'm not concerned with the significance values at the moment (though I would like to use them at some point).

claytonjschneider commented 1 year ago

Seemed to do the trick.