243 character filename*(*)
244 integer itrace, nsamp, maxsamp
246 integer idata(maxsamp)
249 character cs*1, code*20, time*20, date*20, tist*20, type*30, rs*1
250 character wid2line*132
252 real c1,c2,c3,r1,r2,r3,sffu_tfirst
253 integer ierr, lu, nstack, i
257 print *,
'going to read ',filename(1:index(filename,
' ')),
'...' 259 call sff_ropens(lu, filename, inv, tist, code,
type, cs, c1, c2, c3
261 if (ierr.ne.0) stop
'ERROR opening input file' 265 if (last) stop
'ERROR: too few traces in input file' 266 call sff_rtracei(lu, tanf, dt, wid2line, nsamp,
data, idata, code
268 if (ierr.ne.0) stop
'ERROR: reading input file' 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'