seismograms.py 文件源码

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

项目:seis_tools 作者: romaguir 项目源码 文件源码
def read(self, station_name, plot=True):

          seismogram = np.loadtxt(station_name) 
          self.t = seismogram[:,0]
          self.trace_x = seismogram[:,1]
          self.nt = len(self.t)
          self.dt = np.max(self.t)/len(self.t)

          #if (plot == true):

          plt.plot(self.t, self.trace_x)

 ################################################################
 #              cross correlate travel times
 ################################################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号