Hi Emily,
Well, it should not kill the process, so this is definitively a bug. If
you have a github account, please open an Issue describing the problem
and, if possible, add the files (even incomplete files) for the two
stations for 2011-09-06 in a zip somewhere, so I can reproduce the issue.
Thanks a lot,
Thomas
On 06/09/2017 18:49, Crowder, Emily wrote:
Sorry for the multiple messages.
I have realised why the compute_cc is stopping. It is because I am
trying to compute TT, using BHN and BHE, and for some days, there is a
BHE and not a BHN data file. I think the problem is the code is not
skipping the days where there isn't enough data to compute a CC.
Instead, it is just stopping the process entirely.
Hope this helps.
Emily
~~~~~~~~~~~~~~~~~~~~~~~~~
*Emily Crowder **MSc BSc*
PhD Student
School of Geosciences
University of Aberdeen
Aberdeen AB24 3UE
Scotland
Em: emily.crowder(a)abdn.ac.uk
~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------
*From:* Crowder, Emily
*Sent:* 06 September 2017 17:22
*To:* Thomas Lecocq
*Subject:* MSNoise compute_cc error
Hi Thomas,
I fixed my web interface error, I had not installed entirely
everything on the required items list. Unfortunately I now have a new
problem whilst computing cross-correlations. CCs are computed
successfully for a few jobs before the error occurs and the process
stops. I have copied the output below. Is it a problem with my data?
Or one of the variables in config?
I really appreciate your help with all things MSNoise related.
Best,
Emily
2017-09-06 16:49:57 [INFO] New CC Job: 2011-09-06 (1 pairs with 2
stations)
2017-09-06 16:49:57 [DEBUG] BA.BA04.E Reading 2 Files
2017-09-06 16:49:57 [DEBUG] Checking sample alignment
2017-09-06 16:49:57 [DEBUG] Checking Gaps
2017-09-06 16:49:57 [DEBUG] BA.BA04.E Highpass at 0.03 Hz
2017-09-06 16:49:57 [DEBUG] BA.BA04.N Reading 2 Files
2017-09-06 16:49:57 [DEBUG] Checking sample alignment
2017-09-06 16:49:57 [DEBUG] Checking Gaps
2017-09-06 16:49:57 [DEBUG] BA.BA04.N Highpass at 0.03 Hz
2017-09-06 16:49:57 [DEBUG] BA.BA06.E Reading 2 Files
2017-09-06 16:49:57 [DEBUG] Checking sample alignment
2017-09-06 16:49:57 [DEBUG] Checking Gaps
2017-09-06 16:49:57 [DEBUG] BA.BA06.E Highpass at 0.03 Hz
2017-09-06 16:49:57 [DEBUG] BA.BA06.N Reading 1 Files
2017-09-06 16:49:57 [DEBUG] Checking sample alignment
2017-09-06 16:49:57 [DEBUG] Checking Gaps
2017-09-06 16:49:57 [DEBUG] has only too small traces, skipping...
2017-09-06 16:49:57 [INFO] Processing pair: BA.BA04 vs BA.BA06
2017-09-06 16:49:57 [INFO] Azimuth=75.6
2017-09-06 16:49:57 [DEBUG] Processing TT
2017-09-06 16:49:57 [DEBUG] Rotating streams, making sure they are aligned
Process Process-1:
Traceback (most recent call last):
File
"/Users/r01ec15/anaconda/lib/python2.7/multiprocessing/process.py",
line 258, in _bootstrap
self.run()
File
"/Users/r01ec15/anaconda/lib/python2.7/multiprocessing/process.py",
line 114, in run
self._target(*self._args, **self._kwargs)
File
"/Users/r01ec15/anaconda/lib/python2.7/site-packages/msnoise/s03compute_cc.py",
line 318, in main
t2_novert = make_same_length(t2_novert)
File
"/Users/r01ec15/anaconda/lib/python2.7/site-packages/msnoise/api.py",
line 1433, in make_same_length
tr.data.mask = mask
UnboundLocalError: local variable 'mask' referenced before assignment
~~~~~~~~~~~~~~~~~~~~~~~~~
*Emily Crowder **MSc BSc*
PhD Student
School of Geosciences
University of Aberdeen
Aberdeen AB24 3UE
Scotland
Em: emily.crowder(a)abdn.ac.uk
~~~~~~~~~~~~~~~~~~~~~~~~~
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.
--
Dr. Thomas Lecocq
Geologist - Seismologist
Seismology - Gravimetry
Royal Observatory of Belgium
*
* * * * *
* * * *
---------
http://www.seismology.be
http://msnoise.org
http://twitter.com/#!/Seismologie_be
https://www.facebook.com/seismologie.be