swiss-seismological-service / scrtdd

Double Difference Relocator for SeisComP
27 stars 10 forks source link

Compute cross-correlation with local mean #38

Closed damb closed 3 years ago

damb commented 3 years ago

This PR fixes the issue that during the computation of a sample correlation, the longer trace wasn't demeaned with the corresponding local mean. Instead, it was assumed to be demeaned overall, which is incorrect.

I'm not sure if the provided fix can be further optimized.

@luca-s, would you be so kind and check if the fix works properly? Thanks.