Align Signals Using Cross-Correlation
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello, I would like to align arthquake signals from the longest to the shortest component according to the example provided in text file. I have around 95000 earthquake signals with a unified format. Based on oone example, the first row, the second and the third column of the column correspond to the EW, NS and Z components of the earthquake signal according to the script provided in the attachment. Herein, I was trying to aling the signal using "cross correlation" as provided in the following link:
However, I encountered some issues, specially when I want to align the three component of the signals. Apparently, the vertical component presents a missalignment respect the two horizontal components in a sample interval of -7. Following the link it is kind of unclear to mean to align the final components. I would appreciate some help.
댓글 수: 3
채택된 답변
Jon
2023년 6월 12일
편집: Jon
2023년 6월 12일
I think the problem you are having is that you must figure out how to sort the three signals to determine their arrival order so you know how to trim them. There is enough information to do this knowing only the lags 21, 31, and 32, but exactly how to do this and have it work in general seems like it might be a little tricky. Do you need to do this for many data sets so it has to be automated, or is it just a one time thing and you could do this part manually. For the automated approach you could look at generalized sorting algorithms such as https://www.mathworks.com/matlabcentral/fileexchange/6756-generalized-sorting
Or for only 3 elements you could probably come up with an approach on your own.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Earthquake Engineering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!