191 character*(*) filename
195 integer maxsamp, nsamp
196 parameter(maxsamp=100000)
198 integer idata(maxsamp)
199 equivalence(fdata, idata)
202 character code*10, timestamp*13, scs*1, date*6, time*10
203 real sffversion, sc1, sc2, sc3
208 character rcs*1, wid2line*132
209 real rc1, rc2, rc3, tanf, dt
214 print *,
'open ',filename(1:index(filename,
' '))
215 call sff_ropens(lu, filename, sffversion, timestamp, code,
216 & source, scs, sc1, sc2, sc3, date, time, ierr)
218 stop
'ERROR: opening file' 220 print *,
'sffversion: ', sffversion
221 print *,
'timestamp: ', timestamp
222 print *,
'code: ', code
223 print *,
'source: ', source
224 print *,
'scs, sc1, sc2, sc3: ', scs, sc1, sc2, sc3
225 print *,
'date time: ', date,
' ', time
229 print *,
'read next trace' 231 call sff_rtracei(lu, tanf, dt,
232 & wid2line, nsamp, fdata,
234 & rcs, rc1, rc2, rc3, nstack, ierr)
236 print *,
'nsamp: ',nsamp
237 print *,
'rcs, rc1, rc2, rc3: ',rcs, rc1, rc2, rc3
238 print *,
'nstack: ',nstack
240 print *,
'tanf: ',tanf
241 print *,
'code: ',code
243 stop
'ERROR: reading trace'