pycwt icon indicating copy to clipboard operation
pycwt copied to clipboard

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

Open shenghwa opened this issue 1 year ago • 4 comments

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?

shenghwa avatar Jul 07 '22 07:07 shenghwa

I have this issue as well

claytonjschneider avatar Oct 27 '22 07:10 claytonjschneider

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 avatar Oct 27 '22 07:10 claytonjschneider

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 avatar Oct 27 '22 07:10 claytonjschneider

Seemed to do the trick.

claytonjschneider avatar Oct 27 '22 07:10 claytonjschneider