132 character*(*) filename
133 double precision indt
145 character date*7, time*12,stype*22, wid2line*132, nil*10
150 print *,
'open ',filename(1:index(filename,
' '))
159 call sff_prepwid2(m, rate,
'sta ',
160 & 2011, 04, 01, 12, 32,
'chan ',
'aux ',
'ins ',
161 & 10.023456, -1., -1., -1., -1., wid2line, ierr)
162 if (ierr.ne.0) stop
'ERROR: preparing wid2line' 163 call sff_wopens(lu, filename, stype,
'C', 0., 0., 0., date, time, ierr
164 if (ierr.ne.0) stop
'ERROR: opening file' 168 print *,
'write trace #',i
172 if (k.le.m) d(k)=1./sqrt(i*dx)
175 call sff_wtracei(lu, wid2line, m, d, id, .true.,
'C',
176 & i*dx, 0., 0., 1, ierr)
178 call sff_wtracei(lu, wid2line, m, d, id, .false.,
'C',
179 & i*dx, 0., 0., 1, ierr)
181 if (ierr.ne.0) stop
'ERROR: writing trace'