Hi Fernando,
Can you tell me what is filter 03 ? and at which frequency do you
calculate the CCFs ?
An usual reason for failure at this point is that you don't have enough
points in the calculation to compute the weighted linear regression...
Thomas
Le 8/02/2015 17:44, Fernando Salazar Monroy a écrit :i
Greetings for all,
I'm trying estimate the s05compute_mwcs.py for all my data base, when
I run this code, this appeared:
2015-02-08 10:33:39,545 [DEBUG] Processing MWCS for:
IG_ARIG_IG_PLIG.ZZ.03 - 2011-12-29 - 10 days
Traceback (most recent call last):
File "s05compute_mwcs.py", line 118, in <module>
cur, ref, f.mwcs_low, f.mwcs_high, goal_sampling_rate, -maxlag,
f.mwcs_wlen, f.mwcs_step)
File "/media/fernando/Seagate Expansion
Drive/MSNOISE/GGAP_SSN/MWCS.py", line 151, in mwcs
res = sm.regression.linear_model.WLS(phi, v, w**2).fit()
File
"/usr/local/lib/python2.7/dist-packages/statsmodels-0.5.0-py2.7-linux-x86_64.egg/statsmodels/regression/linear_model.py",
line 381, in __init__
weights=weights, hasconst=hasconst)
File
"/usr/local/lib/python2.7/dist-packages/statsmodels-0.5.0-py2.7-linux-x86_64.egg/statsmodels/regression/linear_model.py",
line 79, in __init__
super(RegressionModel, self).__init__(endog, exog, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/statsmodels-0.5.0-py2.7-linux-x86_64.egg/statsmodels/base/model.py",
line 136, in __init__
super(LikelihoodModel, self).__init__(endog, exog, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/statsmodels-0.5.0-py2.7-linux-x86_64.egg/statsmodels/base/model.py",
line 52, in __init__
self.data = handle_data(endog, exog, missing, hasconst, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/statsmodels-0.5.0-py2.7-linux-x86_64.egg/statsmodels/base/data.py",
line 397, in handle_data
return klass(endog, exog=exog, missing=missing, hasconst=hasconst,
**kwargs)
File
"/usr/local/lib/python2.7/dist-packages/statsmodels-0.5.0-py2.7-linux-x86_64.egg/statsmodels/base/data.py",
line 78, in __init__
self._check_integrity()
File
"/usr/local/lib/python2.7/dist-packages/statsmodels-0.5.0-py2.7-linux-x86_64.egg/statsmodels/base/data.py",
line 246, in _check_integrity
if len(self.exog) != len(self.endog):
TypeError: len() of unsized object
I haven't modified anything inside of s05compute_mwcs.py, I don't
understand the error.
I hope that somebody help me with this.
Edilson Fernando Salazar Monroy
Master in Earth Sciences
National Autonomus University of Mexico