[MSNoise] Problem using s07plot_dtt.py

Thomas Lecocq thomas.lecocq at seismology.be
Tue Nov 11 12:14:52 UTC 2014


Hello Oscar,

When you make such a change in the configurator, MSNoise is not 
(currently) capable of detecting it and automatically reset all MWCS/DTT 
jobs to "T"odo. Then, when you will compute the MWCS and DTT steps, it 
will only calculate the values for the "new jobs", not for all jobs 
previously done. This is something I should add in the documentation and 
find a way to automate the detection.

To reset all DTT jobs, open your database in a SQL viewer (any will do) 
and type

"UPDATE jobs set flag='T' where type='DTT'; "

and restart steps 5 and 6, which should recompute all pairs.

Cheers

Thomas

Le 30/10/2014 19:34, Oscar Alberto Castro Artola a écrit :
> Hello,
>
> I was working with MSNoise without problems until I decided to change the
> *mwcs_wlen* and *mwcs_step*. I ran *s05compute_mwcs.py* and
> *s06compute_dtt.py* with the new parameters and then I ran
> *s07plot_dtt.py* giving
> me the next error message:
>
> *oscar at terminus:~/Doctorado/TI_2/sweet_noise$ py s07plot_dtt.py *
> */home/oscar/bin/python/anaconda/lib/python2.7/site-packages/setuptools-3.6-py2.7.egg/pkg_resources.py:1045:
> UserWarning: /home/oscar/.python-eggs is writable by group/others and
> vulnerable to attack when used with get_resource_filename. Consider a more
> secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE
> environment variable).*
> *Traceback (most recent call last):*
> *  File "s07plot_dtt.py", line 96, in <module>*
> *    data = detrend(py1_wmean)*
> *  File
> "/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/statsmodels/tsa/tsatools.py",
> line 230, in detrend*
> *    beta = np.linalg.lstsq(trends, x)[0]*
> *  File
> "/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py",
> line 1837, in lstsq*
> *    nlvl = max( 0, int( math.log( float(min(m, n))/2. ) ) + 1 )*
> *ValueError: math domain error*
> *oscar at terminus:~/Doctorado/TI_2/sweet_noise$ vi s06compute_dtt.py *
> *oscar at terminus:~/Doctorado/TI_2/sweet_noise$ py s07plot_dtt.py *
> */home/oscar/bin/python/anaconda/lib/python2.7/site-packages/setuptools-3.6-py2.7.egg/pkg_resources.py:1045:
> UserWarning: /home/oscar/.python-eggs is writable by group/others and
> vulnerable to attack when used with get_resource_filename. Consider a more
> secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE
> environment variable).*
> *Traceback (most recent call last):*
> *  File "s07plot_dtt.py", line 96, in <module>*
> *    data = detrend(py1_wmean)*
> *  File
> "/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/statsmodels/tsa/tsatools.py",
> line 230, in detrend*
> *    beta = np.linalg.lstsq(trends, x)[0]*
> *  File
> "/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py",
> line 1837, in lstsq*
> *    nlvl = max( 0, int( math.log( float(min(m, n))/2. ) ) + 1 )*
> *ValueError: math domain error*
>
> Does anyone can help me? Thank you very much in advance!
>
> Oscar
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise



More information about the MSNoise mailing list