def normWeightStack(data, wgts, taperwidth, tapertype): """ Calculate array stack by averaging with weighting and normalization. """ mdata = [d / max(d) for d in data] sdata = mean(transpose(mdata) * wgts, 1) sdata = taper(sdata, taperwidth, tapertype) return sdata
def normWeightStack(data, wgts, taperwidth, tapertype): """ Calculate array stack by averaging with weighting and normalization. """ mdata = [ d/max(d) for d in data ] sdata = mean(transpose(mdata) * wgts, 1) sdata = taper(sdata, taperwidth, tapertype) return sdata
def weightStack(data, wgts, taperwidth, tapertype): """ Calculate array stack by averaging with weighting. """ sdata = mean(transpose(data) * wgts, 1) sdata = taper(sdata, taperwidth, tapertype) return sdata
def meanStack(data, taperwidth, tapertype): """ Calculate array stack by averaging without weighting. """ sdata = mean(data, 0) sdata = taper(sdata, taperwidth, tapertype) return sdata