Skip to content

Value Error when using compute_cc_rot #274

Answered by ThomasLecocq
JessieSchuler asked this question in Q&A
Discussion options

You must be logged in to vote

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:

minlen = np.min([tr.stats.npts for tr in st])
for tr in st:
    tr.data = tr.data[:minlen]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThomasLecocq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants