[MSNoise] Problem using s07plot_dtt.py

Oscar Alberto Castro Artola oscar.cas.art at gmail.com
Tue Nov 11 18:45:31 UTC 2014


Dear Thomas,

thank you for your answer! Unfortunatelly it didn't work. I changed the
flags on my SQL database and restarted the steps 5 and 6 and then tried to
plot but I got the same error message. The new values for *mwcs_wlen=10 *and
*mwcs_step=20,* I don't know if there is any restriction about this. Thank
you in advance!

Oscar

On Tue, Nov 11, 2014 at 6:14 AM, Thomas Lecocq <thomas.lecocq at seismology.be>
wrote:

> 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
>>
>
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
>
>


More information about the MSNoise mailing list