Waveform filter programs

◆ getfile()

subroutine getfile ( character, dimension(*)  filename,
integer  itrace,
real, dimension(maxsamp)  data,
integer, dimension(maxsamp)  idata,
integer  maxsamp,
integer  nsamp,
real  tanf,
real  dt 
)

Definition at line 242 of file dise.f.

Referenced by dise().

242 c
243  character filename*(*)
244  integer itrace, nsamp, maxsamp
245  real data(maxsamp)
246  integer idata(maxsamp)
247  real tanf, dt
248 c
249  character cs*1, code*20, time*20, date*20, tist*20, type*30, rs*1
250  character wid2line*132
251  real inv
252  real c1,c2,c3,r1,r2,r3,sffu_tfirst
253  integer ierr, lu, nstack, i
254  parameter(lu=10)
255  logical last
256 c
257  print *,'going to read ',filename(1:index(filename, ' ')),'...'
258 c
259  call sff_ropens(lu, filename, inv, tist, code, type, cs, c1, c2, c3,
260  & date,time,ierr)
261  if (ierr.ne.0) stop 'ERROR opening input file'
262  nsamp=maxsamp
263  last=.false.
264  do i=1,itrace
265  if (last) stop 'ERROR: too few traces in input file'
266  call sff_rtracei(lu, tanf, dt, wid2line, nsamp, data, idata, code,
267  & last, rs, r1, r2, r3, nstack, ierr)
268  if (ierr.ne.0) stop 'ERROR: reading input file'
269  enddo
270  print *,' read trace no.',itrace
271  if (.not.(last)) close(lu)
272  tanf=sffu_tfirst(wid2line, time, date)
273  print *,' trace begins at ',tanf,'sec'
274  print *,' sampling interval is ',dt,'sec'
275  return
Here is the caller graph for this function: