[SAC-HELP] question about "do file wild *SAC"

Igor Stubailo stubailo at gmail.com
Tue Jan 26 12:42:26 PST 2010


Dear SAC users,

Could you please help me to find out what's wrong with my file reading
sequence?

The code snippet from sac_LHZ.test:
...
do file wild *SAC
setbb vert $file
r %vertdo file wild *SAC
setbb station &1,KSTNM
setbb otime &1,O
evaluate to cotime %otime * (-1.0)
ch ALLT %cotime IZTYPE IO
setbb network &1,KNETWK
setbb polezero %polezerod%%station%.%network%.PZ
w %vert
enddo
...

The content of the current dir:
PTRP.TO.SAC  LVOF.TO.SAC  MMMR.TO.SAC

The errors:
>do file wild *SAC
>./tr: line 4: 26622 Segmentation fault sac <<!
>m sac_LHZ.test
>quit
>!

The script I run:
>cat tr
sac <<!
m sac_LHZ.test
quit
!


If I comment out the lines "do file.." and "enddo" and read a single file
like:
setbb vert PTRP.TO.SAC
the code continues to execute fine.
So the problem is about using wild with *SAC.

Thanks,
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20100126/03865695/attachment.html>


More information about the sac-help mailing list