本文整理汇总了Python中fault.FaultSemblance.semblanceFromNumDen方法的典型用法代码示例。如果您正苦于以下问题:Python FaultSemblance.semblanceFromNumDen方法的具体用法?Python FaultSemblance.semblanceFromNumDen怎么用?Python FaultSemblance.semblanceFromNumDen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fault.FaultSemblance
的用法示例。
在下文中一共展示了FaultSemblance.semblanceFromNumDen方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: goAlign
# 需要导入模块: from fault import FaultSemblance [as 别名]
# 或者: from fault.FaultSemblance import semblanceFromNumDen [as 别名]
def goAlign():
s1,s2,g = getImage()
g = slog(g)
n1,n2 = len(g[0]),len(g)
fse = FaultSemblance()
p = fse.slopes(g)
ref = RecursiveExponentialFilter(4)
sn,sd = fse.semblanceNumDen(p,g)
ref.apply1(sn,sn)
ref.apply1(sd,sd)
s = fse.semblanceFromNumDen(sn,sd)
plot2(s1,s2,g,s,gmin=0,gmax=1,title="semblance with alignment")
p = zerofloat(n1,n2) # semblance with zero slopes
sn,sd = fse.semblanceNumDen(p,g)
ref.apply1(sn,sn)
ref.apply1(sd,sd)
s = fse.semblanceFromNumDen(sn,sd)
plot2(s1,s2,g,s,gmin=0,gmax=1,title="semblance without alignment")
示例2: goSemblance
# 需要导入模块: from fault import FaultSemblance [as 别名]
# 或者: from fault.FaultSemblance import semblanceFromNumDen [as 别名]
def goSemblance():
s1,s2,g = getImage()
g = slog(g)
fse = FaultSemblance()
g = fse.taper(10,g)
p = fse.slopes(g)
sn0,sd0 = fse.semblanceNumDen(p,g)
print "semblances for different vertical smoothings:"
for sigma in [0,2,4,8]:
ref = RecursiveExponentialFilter(sigma)
sn = copy(sn0)
sd = copy(sd0)
ref.apply1(sn,sn)
ref.apply1(sd,sd)
s = fse.semblanceFromNumDen(sn,sd)
print "sigma =",sigma," s min =",min(s)," max =",max(s)
title = "semblance: sigma = "+str(sigma)
plot2(s1,s2,g,s,gmin=0,gmax=1,title=title)