<div>Dear SAC users,<br></div><div><br></div><div>Could you please help me to find out what's wrong with my file reading sequence?</div><div><br></div><div>The code snippet from sac_LHZ.test:</div><div>...</div><div>do file wild *SAC<br>
setbb vert $file<br> r %vertdo file wild *SAC<br> setbb station &1,KSTNM<br> setbb otime &1,O<br> evaluate to cotime %otime * (-1.0)<br> ch ALLT %cotime IZTYPE IO<br> setbb network &1,KNETWK<br> setbb polezero %polezerod%%station%.%network%.PZ<br>
w %vert<br>enddo<br></div><div>...</div><div><br></div><div>The content of the current dir:</div><div>PTRP.TO.SAC LVOF.TO.SAC MMMR.TO.SAC</div><div><br></div><div>The errors:</div><div>>do file wild *SAC<br>>./tr: line 4: 26622 Segmentation fault sac <<!<br>
>m sac_LHZ.test<br>>quit<br>>!<br><br></div><div>The script I run:</div><div>>cat tr<br>sac <<!<br>m sac_LHZ.test<br>quit<br>!<br><br></div><div><br></div><div>If I comment out the lines "do file.." and "enddo" and read a single file like:<br>
</div><div>setbb vert PTRP.TO.SAC</div><div>the code continues to execute fine. </div><div>So the problem is about using wild with *SAC.</div><div><br></div><div>Thanks,</div><div>Igor</div>