def nmo(self,v,gather,offsets=None): vel = sffile1d(v,self.ot,self.dt,self.nt) c = sffile2d(gather,self.ot,self.dt,self.nt,self.oo,self.do,self.no) if not offsets==None: of = sffile1d(offsets,self.oo,self.do,self.no) d = rsf.nmo(velocity=vel,half="n",offset=of)[c] else: d = rsf.nmo(velocity=vel,half="n")[c] b = np.array(d) return b
def nmo(self,v,gather,offsets=None): vel = sffile1d(v,self.ot,self.dt,self.nt) c = sffile2d(gather,self.ot,self.dt,self.nt,self.oo,self.do,self.no) if not offsets==None: of = sffile1d(offsets,self.oo,self.do,self.no) d = rsf.nmo(velocity=vel,half=self.half,offset=of)[c] else: d = rsf.nmo(velocity=vel,half=self.half)[c] b = np.array(d) # close temp rsf files d.close() vel.close() c.close() return b
def nmo(self, v, gather, offsets=None): vel = sffile1d(v, self.ot, self.dt, self.nt) c = sffile2d(gather, self.ot, self.dt, self.nt, self.oo, self.do, self.no) if not offsets == None: of = sffile1d(offsets, self.oo, self.do, self.no) d = rsf.nmo(velocity=vel, half=self.half, offset=of)[c] else: d = rsf.nmo(velocity=vel, half=self.half)[c] b = np.array(d) # close temp rsf files d.close() vel.close() c.close() return b