synth_data.py 文件源码

python
阅读 40 收藏 0 点赞 0 评论 0

项目:ConvNetQuake 作者: tperol 项目源码 文件源码
def get_normalized_templates(template_streams):
    templates = []
    for ts in template_streams:
        t = data_conversion.stream2array(ts)
        t = t.astype(np.float32)
        t -= np.mean(t, axis=1, keepdims=True)
        template_max = np.amax(np.abs(t))
        t /= template_max
        t *= np.blackman(ts[0].stats.npts)
        templates.append(t)
    return templates
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号