Hi Thomas
Thank you very much! :)
MSNoise is really an excellent work!
If the package supports SAC format input, It would be more convenient to use it. I strongly suggest.
Sincerely
Xiaohan Chen
At 2014-12-02 16:36:29, "Thomas Lecocq" <thomas.lecocq(a)oma.be> wrote:
>Hello,
>
>
>Le 02/12/2014 03:24, cxh757 a écrit :
>> Hi
>>
>>
>> Now I am trying to follow the workflow to run the test example ( download from github https://github.com/ROBelgium/MSNoise/tree/master/tests/data/2010 ), but I have two questions:
>>
>>
>> (1) What is the format of the input data? It seems that the input data format is NOT SAC format, but I did not find any information about data format in the online documentation.
>This is MiniSEED
>>
>>
>> (2) There is a PAZ parameter in the configuration GUI, the description is "Correct instrumental responce from paz [Y]/N".
>> If I choose Y, does it works? If it works, what should the file name of the paz file be and what's the format of the paz file?
>This option has no effect, I had implemented the PAZ correction (partly
>submitted by Z. Spica at the time), but this has disappeared from the
>current version. It will be re-implemented sooner or later (but
>carefully, as this may induce filtering problems (pre_filt etc)).
>
>cheers,
>
>thomas
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise(a)mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
>
>_______________________________________________
>MSNoise mailing list
>MSNoise(a)mailman-as.oma.be
>http://mailman-as.oma.be/mailman/listinfo/msnoise
Hi
Now I am trying to follow the workflow to run the test example ( download from github https://github.com/ROBelgium/MSNoise/tree/master/tests/data/2010 ), but I have two questions:
(1) What is the format of the input data? It seems that the input data format is NOT SAC format, but I did not find any information about data format in the online documentation.
(2) There is a PAZ parameter in the configuration GUI, the description is "Correct instrumental responce from paz [Y]/N".
If I choose Y, does it works? If it works, what should the file name of the paz file be and what's the format of the paz file?
Hi Thomas
Thanks for your reply.
My OS is CentOS 6.5 final.
1) I use the 1.2.5 version, from https://github.com/ROBelgium/MSNoise/releases/tag/1.2.5
2) It seems that I have installed the sphinx package:
[cxh@core MSNoise-1.2.5]$ python bugreport.py -m
************* Computer Report *************
----------------+PYTHON+-------------------
Python: 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
---------------+MODULES+-------------------
Required:
[X] numpy: 1.9.0
[X] scipy: 0.14.0
[X] pandas: 0.14.1
[X] matplotlib: 1.4.0
[X] statsmodels: 0.5.0
[X] sqlalchemy: 0.9.7
[X] traitsui: 4.4.0
[X] traits: 4.4.0
[X] enable: 4.3.0
[X] scikits.samplerate: present (no version)
[X] obspy: 0.9.2
[X] sphinx: 1.2.3
[X] jinja2: 2.7.3
[X] flask: 0.10.1
[X] flask.ext.admin: 0.10.1
[X] wtforms: 2.0.1
[X] json: 2.0.9
[X] psutil: 2.1.1
Backends: (at least one is required)
[ ] wx: not found
[X] PyQt4: present (no version)
[ ] PySide: not found
Not required, just checking:
[X] setuptools: 5.8
[ ] reportlab: not found
[X] configobj: 5.0.6
[X] pkg_resources: present (no version)
[ ] paramiko: not found
[X] ctypes: 1.1.0
[X] pyparsing: 2.0.1
[X] distutils: 2.7.8
[X] IPython: 2.2.0
[ ] vtk: not found
Thanks.
At 2014-12-01 16:31:59, "Thomas Lecocq" <thomas.lecocq(a)oma.be> wrote:
>Hi,
>
>Can you tell me if :
>
>[_] you use the 1.2.5 version (not master)
>[_] you have all dependencies installed (use bugreport.py -m to check)
>
>it looks like the sphinx package is not properly installed !
>
>Thomas
>
>Le 01/12/2014 08:35, cxh757 a écrit :
>> I follow http://msnoise.org/doc/installation.html#building-this-documentation to try to build the documentation.
>>
>>
>> but when I run "make html", it returns :
>>
>>
>> [cxh@core doc]$ make html
>> sphinx-build -b html -d .build/doctrees . .build/html
>> Traceback (most recent call last):
>> File "/home/cxh/anaconda/bin/sphinx-build", line 9, in <module>
>> load_entry_point('Sphinx==1.2.3', 'console_scripts', 'sphinx-build')()
>> File "/home/cxh/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 339, in load_entry_point
>> File "/home/cxh/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 2456, in load_entry_point
>> ImportError: Entry point ('console_scripts', 'sphinx-build') not found
>> make: *** [html] error 1
>>
>>
>> How can I solve this problem?
>> Thanks
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise(a)mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
>
>_______________________________________________
>MSNoise mailing list
>MSNoise(a)mailman-as.oma.be
>http://mailman-as.oma.be/mailman/listinfo/msnoise
I follow http://msnoise.org/doc/installation.html#building-this-documentation to try to build the documentation.
but when I run "make html", it returns :
[cxh@core doc]$ make html
sphinx-build -b html -d .build/doctrees . .build/html
Traceback (most recent call last):
File "/home/cxh/anaconda/bin/sphinx-build", line 9, in <module>
load_entry_point('Sphinx==1.2.3', 'console_scripts', 'sphinx-build')()
File "/home/cxh/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 339, in load_entry_point
File "/home/cxh/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 2456, in load_entry_point
ImportError: Entry point ('console_scripts', 'sphinx-build') not found
make: *** [html] error 1
How can I solve this problem?
Thanks�&�&j�^r�*�f�x�'
�5����]�ׄ^���=�a�&j�^r�*�f�ys���jT���Ǧj)fjv��f�x7����y����Ǧj)fjv��f�y�z+�u��ɭ�j&i����v�f�{_w��6�M�o)��Y���(���>�-~,p��DH�ω�Ӟ�Ӡ�~��z"�隊Y���(���2��
�6�^4�}���4�E �z+�u��]��Mm��(r�\�f�{_vׯ5�^5o+&�������^7��x���HB��t���D�L���|V�5�^��W�k'�+�����ڲ��m�(�P�sm5�O7מ�13�Ơx��㰶�u�m7Ӛ&i��j�}5
�6�^4�}y��5�Ak�d�f�-�(r�a�f���(r�&i�����6���ѣ&�9�������|��+�Rǫ���3�YZ���wh��S�U�[�+�}t�$����M5�T�w^���w���C0E^�Ȩ�]�k'�+�����ڲ��m�^}�ޝǬ��i��}׆��Κk�����j)\���]�r�����$���i��}׆��Κk�����j)\���]�r���{^����^��镨�r���
Dear users,
I want find a way to insert into the CC header's files the pair stations distance for each CC.
In the file 'database_tools.py' I found in 'MISCS' this code:
############ MISCS ############
def azimuth(coordinates, x0, y0, x1, y1):
if coordinates == "DEG":
dist, azim, bazim = gps2DistAzimuth(y0, x0, y1, x1)
# print dist, azim, bazi
return azim
elif coordinates == 'UTM':
azim = 90. - np.arctan2((y1 - y0), (x1 - x0)) * 180. / np.pi
# print azim
return azim
else:
print "woooooow, please consider having a single coordinate system for all stations"
return 0
So my idea was insert this code inside the 'correlation' section to insert these information in the header's files like it happens with other parameters below:
if sac_format == "doublets":
tr.SetHvalue('A', 120)
else:
tr.SetHvalue('B', -maxlag)
tr.SetHvalue('DEPMIN', np.min(corr))
tr.SetHvalue('DEPMAX', np.max(corr))
tr.SetHvalue('DEPMEN', np.mean(corr))
tr.SetHvalue('SCALE', 1)
tr.SetHvalue('NPTS', len(corr))
tr.WriteSacBinary(filename)
del st, tr
return
I think also that insert this type of implementation in the code could be very helpful. I hope that someone can help me.
cheers,
Carmelo
-----------
Mr Carmelo Sammarco MSc BSc FGS
PhD student in Geology and Petroleum Geology
University of Aberdeen
The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir. SC013683.
MSNoise Workshop at AGU 2014
Dear All !
There are things coming every year, such as Thanksgiving, or Christmas…
And, before Christmas, there is the annual pilgrimage for some 20.000
geoscientists gathering in San Francisco for AGU. Just like last year,
we have booked a room at the Marriott Marquis to organise a MSNoise
workshop ! Last year an half-day was too short for going into detail, so
this year, we are pleased to announce a *1 day MSNoise workshop* on
*Sunday 14 December*!
The aim of this workshop is to demonstrate the powers (and limitations)
of the dv/v calculations using ambient seismic noise cross-correlation.
The MSNoise package (written in Python) will be introduced and then used
by participants on provided demo data. A general schedule will be:
08.30 – 08.45: Welcome
08.45 – 10.00: Introduction to ambient noise cross-correlation & dv/v –
Florent Brenguier (ISTerre)
10.00 – 12.00: MSNoise: general presentation - Thomas Lecocq (Royal
Obs. of Belgium)
12.00 – 12.45: Lunch Break (not included)
13.00 – 18.00: MSNoise practical session – Thomas & Corentin Caudron
(EOSingapore)
Because of high organisational costs, we can’t afford to organise this
workshop for free. We have fixed the fee to 250 USD (200 €) per person,
with a discount for students at 185 USD (150 €). Payments will be done
online via Credit Card (payment information will be sent by email).
To ensure the quality of the experience for everyone, we will not accept
more than 30 participants. Each participant is required to have a
sufficiently recent laptop with software requirements installed
beforehand (instructions will follow). Participants are not expected to
be Python experts, but to have at least a little experience in
programming. To register, use the form located here
<http://www.msnoise.org/msnoise-at-agu-2014-registration/>.
*Information on MSNoise:* MSNoise is the first complete software package
for computing and monitoring relative velocity variations using ambient
seismic noise. MSNoise is a fully-integrated solution that automatically
scans data archives and determines which jobs need to be done whenever
the scheduled task is executed (http://www.msnoise.org).
*Registration:* http://www.msnoise.org/msnoise-at-agu-2014-registration/
*Worth reading:* Lecocq, Thomas, Corentin Caudron, et Florent Brenguier
(2014), MSNoise, a Python Package for Monitoring Seismic Velocity
Changes Using Ambient Seismic Noise, /Seismological Research Letters/,
/85/(3), 715‑726, doi:10.1785/0220130073
<http://srl.geoscienceworld.org/content/85/3/715.full>.
http://srl.geoscienceworld.org/content/85/3/715.full*
*
*
Thomas Lecocq
*
--
Dr. Thomas Lecocq
Seismology - Gravimetry
Royal Observatory of Belgium
*
* * * * *
* * * *
---------
http://www.seismology.behttp://twitter.com/#!/Seismologie_be
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@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@terminus:~/Doctorado/TI_2/sweet_noise$ vi s06compute_dtt.py *
*oscar@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
Hi Thomas,
Thanks again for your information. I have already added 1bit
normalization by myself and am checking if it maked any differences or
not (or, whether I made any mistakes or not). So far, changes between on
& off 1 bit normalizations are subtle except for some combinations of
stations. I will let you know if I find anything on this.
Also, thank you very much for your application of additional signal
processing to avoid frequency leakage. That helps me to understand your
code. As for difference of amplitude, I also find slight difference
between your MSNoise and Florent's system on cirteria around RMS. I will
let you know if it make systematic difference of amplitude of not.
Sincerely,
Run
(11/11/14 1:24 PM), Thomas Lecocq wrote:
>
> Hello Run,
>
>
> Le 4/11/2014 11:01, Kohtaro R. Araragi a e'crit :
>> Hi Thomas,
>>
>> I have a quick question for you. Do you apply 1 bit normalization
>> (Bensen et al., 2007, GJI) at MSNoise?
> No, only 3*RMS clipping (windsorization) for each window.
>
>> I have been looking for your documentation and MSNoise code, but I
>> could not find or I may not understand your code well.
>>
>> At least, I can find that you apply similar processes around
>> "Pre-Whitening Traces"(below). If you actually do not apply 1 bit
>> normalization, should I apply by myself or do you intend to add it to
>> regular MSNoise package?
>>
>> If I just misunderstand your code, I'm sorry and appreciate if you
>> clarify this part.
>>
>> FYI, as long as I compare output from MSNoise and Florent's system,
>> they match very well if we analyze data that do not have many
>> earthquakes (attached picture below. Blue line from MSNoise, Red line
>> from Florent's system).
>
> Are you using MSNoise:master or MSNoise:releases:1.2.5 form github ?
> The master contains a bug correction in the maths of the whiten
> function, which changes the output slightly (but is correct !!). BTW,
> I also observed that my MSNoise shows more amplitude (but hopefully
> same phase) as Florent's matlab edition. This is because I care a
> little more about the signal processing (cos tapering windows, etc...,
> to avoid frequency leakage, ....etc)... :-) :-)
>
> Best
>
> Thomas
>
>>
>> Thanks in advance,
>> Run
>> --
>> logging.info("Pre-Whitening Traces")
>> whitened_slices = np.zeros((len(stations), len(get_filters(db, all=False)), tranches, int(Nfft)), dtype=np.complex)
>> for istation, station in enumerate(stations):
>> for itranche in range(tranches):
>> tmp = tramef_Z[istation, itranche * int(min30):(itranche + 1) * int(min30)]
>> rmsmat = np.std(np.abs(tmp))
>> indexes = np.where(
>> np.abs(tmp) > (windsorizing * rmsmat))[0]
>> tmp[indexes] = (tmp[indexes] / np.abs(
>> tmp[indexes])) * windsorizing * rmsmat
>> tmp *= cp
>> for ifilter, filter in enumerate(get_filters(db, all=False)):
>> whitened_slices[istation, ifilter, itranche,:] = whiten(tmp, Nfft, dt, float(filter.low), float(filter.high), plot=False)
>> del tmp
>> del tramef_Z
>>
>>
>> ____________________________________________________
>> K. Run Araragi
>> PhD studnet/M.Sc.
>> ISTerre, France &
>> Earthquake Research Institute
>> 1-1-1 Yayoi, Bunkyo-ku
>> Tokyo, Japan 113-0032
>>
>> Skype name: kalessinlord
>> Tel: 81-3-5841-5697
>> Cel: 81-90-1166-3091
>> 33-970-461-805
>> mail:kohtaro.araragi@ujf-grenoble.fr
>> ____________________________________________________
>
--
____________________________________________________
K. Run Araragi
PhD studnet/M.Sc.
ISTerre, France &
Earthquake Research Institute
1-1-1 Yayoi, Bunkyo-ku
Tokyo, Japan 113-0032
Skype name: kalessinlord
Tel: 81-3-5841-5697
Cel: 81-90-1166-3091
33-970-461-805
mail:kohtaro.araragi@ujf-grenoble.fr
____________________________________________________
Hi Thomas,
Thank you very much, Thomas. I should have downloaded from link at
https://github.com/ROBelgium/MSNoise/releases NOT from
https://github.com/ROBelgium/MSNoise. I will check the release version
and let you know if you find anything around "keep_all" options or other
things.
Sincerely,
Run
(11/11/14 1:20 PM), Thomas Lecocq wrote:
> Hello Run,
>
> Please send your emails to the mailing list, your remarks could be
> useful for many users !
>
>
>
> Le 22/10/2014 11:47, Kohtaro R. Araragi a e'crit :
>> Hi Thomas,
>>
>> Thank you very much for your help the other day. I had to change a
>> little bit after that, but your e-mail with other MSNoise users in
>> the past can help me to resolve all prolbem and now I can use all
>> function until s06compute_dtt.py.
>>
>> Today, I would like to you let you know about what I find in MSNoise
>> function.
>>
>> In "s001configurator.py", we can set "keep_all" as Y if we want to
>> keep each corr_duration CCF (or all 30 seconds cross-corr). However,
>> when I set Y in "keep_all", "s03compute_cc.py" did not work. When I
>> check the code and error message, it seems that current version of
>> s03compute_cc.py use "thisdate" for processing(see bold part in the
>> source below) of "keep_all" before value is assigned. When I set
>> "keep_all" as "N", everything is working and I can compute C.C. I may
>> make some mistakes, and I would be happy if you let me know where I
>> can change.
> You are using the "master" version of MSNoise, which contains this bug
> ! use "releases" on github to be sure to use the bug-free versions !
>
> Thomas
>
>>
>> You may have updated this part and if so, I appreciate if you let me
>> know.
>>
>> Sincerely,
>> Run
>>
>> ----------------------------------------------------------------
>> *if keep_all:**
>> **add_corr(db, station1.replace('.', '_'), station2.replace(**
>> **'.', '_'), filter.ref, thisdate, thistime, min30 / fe, "ZZ", corr,
>> fe)**
>> * if keep_days:
>> if not np.any(np.isnan(corr)) and not np.any(np.isinf(corr)):
>> daycorr += corr
>> ndaycorr += 1
>>
>> if keep_days:
>> thisdate = time.strftime(
>> "%Y-%m-%d", time.gmtime(basetime))
>> thistime = time.strftime(
>> "%H_%M", time.gmtime(basetime))
>> add_corr(
>> db, station1.replace(
>> '.', '_'), station2.replace('.', '_'), filter.ref,
>> thisdate, thistime, min30 / fe, 'ZZ', daycorr, fe, day=True,
>> ncorr=ndaycorr)
>> update_job(db, goal_day, orig_pair, 'CC', 'D')
>> logging.info("Job Finished. It took %.2f seconds" % (time.time() - jt))
>> ----------------------------------------------------------------
>
--
____________________________________________________
K. Run Araragi
PhD studnet/M.Sc.
ISTerre, France &
Earthquake Research Institute
1-1-1 Yayoi, Bunkyo-ku
Tokyo, Japan 113-0032
Skype name: kalessinlord
Tel: 81-3-5841-5697
Cel: 81-90-1166-3091
33-970-461-805
mail:kohtaro.araragi@ujf-grenoble.fr
____________________________________________________
**
Dear Thomas and MSnoise users,
I just completed my first installation and processing on the test case
from AGU 2013 and I had a few observation and comments to improve the
existing documentation for future users.
In the Configurator:
*
I made the mistake to set keep_days as “No”, probably because I
copied the screenshot from the doc. This was, of course, a problem
when I computed the CC. I think it would be worth either to change
the screenshot, or to mention in the doc that this setting could be
problematic.
*
The ref begin and end are set by default in relative, potentially
causing errors if the REF folder is not created by s04stack.
*
I had no filter values by default, I think it would be good to have
suggested values for those who are quickly trying MSnoise.
*
I think it would also be nice to have more advice on the use of
sqlite and mysql. Maybe recommend a sqlite manager, the way it is
done with EasyPHP for mysql.
*
It was already mentioned in the mailing list but it would also be
nice to have suggestions on the best way to reset jobs from “D” to
“T”. It probably won’t be a problem when the toolbox will be ready.
*
I didn’t install wx, so to plot the dt/t I had to disable the line 3
“mpl.use('WxAgg')”. Also the red line didn’t show on the plot, but I
think this is a known problem.
I hope this will be useful for future users.
Cheers,
Raphael De Plaen
PhD Student
University of Luxembourg
**