modified from Jiang,2012. A phase weighting multichannel cross-correlation strategy to pick relative arrival time.
MMCC_test.jupyter contains full function, but without a proper management.
original formula is
setting v=2, then we tear it down to sig,cig,hig,norm_base 4 parts.
$$ \begin{aligned} cig&=signals(t)\cos(\phi(t)) sig&=signals(t)\sin(\phi(t)) hig&=signals(t) \end{aligned} $$
norm_base just for normalization
Using suggestion:
- filter to 0.1-1Hz before mcc would be nice
- regarding to feature of CC, total shift should less than 10% of totoal length
根据江国明,2012 地球物理学报的内容与脚本改写。
相位加权的多道互相关算法,原式如下
jupyter notebook里有完整的功能,不需要py文件,但没整理好。
分为三个部分
相位叠加部分,可以用倍角公式简化,$v=2$时。
互相关部分
归一化部分,没什么要解释的。具体的值没有什么意义,要放在整条波形里面。
根据实际经验,建议在匹配前滤波至0.1~1Hz的频段。这时结果比较清晰,高频成分较少。并且实际shift 最好小于波形总长的10%。