Dear Users,
Today i had this problem after run the staking:
2017-01-18 18:09:54 [DEBUG] Processing AB_AKN:AB_BIGH-ZZ-1
2017-01-18 18:09:55 [DEBUG] Found 954 updated days
2017-01-18 18:09:55 [DEBUG] New Data for AB_AKN:AB_BIGH-ZZ-1
Traceback (most recent call last):
File "/home/carmelo/anaconda/bin/msnoise", line 11, in <module>
sys.exit(run())
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py", line 614, in run
cli(obj={})
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 610, in __call__
return self.main(*args, **kwargs)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py", line 301, in stack
main('ref', interval)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/s04stack.py", line 209, in main
db, sta1, sta2, filterid, components, datelist, format=format)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/api.py", line 1020, in get_results
corr = stack(session, stack_data)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/api.py", line 978, in stack
coh = 1. / data.shape[0] * np.abs(phasestack)
ZeroDivisionError: float division by zero
carmelo@COPS-023437:~/msnoise/Project30$
Someone had this type of problem and already know a way to fix?
probably python is using integer division and because in it the quotient is rounded down... it generate the error?
probably the solution is simpler..
looking forward to know about you guys!
very very thanks!
-----------
Mr Carmelo Sammarco MSc BSc FGS
PhD Student in Geology and Petroleum Geology
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.
Dear users,
long time from my last mail..
I have this small issue ( I hope) when I run the CCs:
2017-01-17 13:04:50 [INFO] *** Starting: Compute CC ***
2017-01-17 13:04:50 [INFO] Will compute ZZ
2017-01-17 13:04:51 [INFO] New CC Job: 2010-01-02 (1 pairs with 2 stations)
Process Process-1:
Traceback (most recent call last):
File "/home/carmelo/anaconda/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/carmelo/anaconda/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 430, in main
basetime, tramef_Z = preprocess(db, stations, comps, goal_day, params, tramef_Z)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 355, in preprocess
return basetime, tramef_Z
UnboundLocalError: local variable 'basetime' referenced before assignment
Before modify the code to find a solution by myself I would like know if someone already had the same issue and if yes what can be the easy solution.
cheers and thanks,
-----------
Mr Carmelo Sammarco MSc BSc FGS
PhD Student in Geology and Petroleum Geology
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.
Dear Thomas, Thanks for your replay. There are just a few errors like that. It is rare, I checked those sac data with error, picked them out , and rerun, It seems all right. However, There are many gaps, pulse calibration and earthquake signals in those sac data. Bellow is the link to the access of those data mentioned before. OneDrive share links: https://1drv.ms/f/s!ArWfPHWmchfDlWAgc2ho7BDgMbvP
Best wishes!
Wang Liwei.
Thomas and msnoise users,
Have you ever across the multiprocessing CC error when you calculate the CC functions? When I just use the ZZ components, Sometimes this error happen, Sometimes it's not. I checked the SAC file and modified the Calibration factor to 1.0, but it's still happens, So it should not the problem of the data and SAC header. I appreciate in advance for any help.
ERROR MESSAGE:2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Slicing Stream to 2014-01-15T00:00:00.000000Z:2014-01-15T23:59:59.990000Z2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Highpass at 0.02 Hz2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Lowpass at 8.00 Hz2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Downsample to 20.0 Hz2016-12-21 15:36:24 [DEBUG] GD.DOY.Z Reading 2 Files2016-12-21 15:36:24 [DEBUG] Checking sample alignment2016-12-21 15:36:24 [DEBUG] Checking GapsProcess Process-1:Traceback (most recent call last): File "/home/rex/anaconda2/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/rex/anaconda2/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/rex/anaconda2/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 430, in main basetime, tramef_Z = preprocess(db, stations, comps, goal_day, params, tramef_Z) File "/home/rex/anaconda2/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 224, in preprocess stream[gap[0]] = stream[gap[0]].__add__(stream[gap[1]], method=0, fill_value="interpolate") File "/home/rex/anaconda2/lib/python2.7/site-packages/obspy/core/trace.py", line 676, in __add__ raise TypeError("Calibration factor differs")TypeError: Calibration factor differsend of compute the cc!