Value Error when using compute_cc_rot #274
-
I received the error below when running compute_cc_rot for ZZ and TT components. When looking at the data from the stations and the day which threw the error, nothing was obviously wrong with the days waveforms. This error did not occur when running just the compute_cc for the ZZ component for the exact same data set. I am a little bit stumped as to what could possibly be causing this error, help would be extremely appreciated! 2022-07-15 01:01:54.693141 msnoise [pid 2890485][INFO]: New CC Job: 2019-12-03 (15 pairs with 6 stations)2022-07-15 01:03:49.805719 msnoise [pid 2890485][INFO]: Will do 15 pairs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like the rotation/or another processing step produces a trace object with 1 less (or more) sample than the others, which shouldn't occur. You could try to edit (temporarily) minlen = np.min([tr.stats.npts for tr in st])
for tr in st:
tr.data = tr.data[:minlen] |
Beta Was this translation helpful? Give feedback.
It looks like the rotation/or another processing step produces a trace object with 1 less (or more) sample than the others, which shouldn't occur. You could try to edit (temporarily)
/opt/conda/envs/msnoise/lib/python3.9/site-packages/msnoise/api.py
with something to trim the data arrays to the same length, add this before line 1754: