Hi there,<br><br>for the first problem I would try to write a script that edits just one file at a time. Then one could run that script in a for loop for all files..<br><br>something like <br>for j in *.sac; do<br>"script" $j
<br>done<br><br>or something similar..<br><br><br>ps: can you please not send 2.5 kilometers of old text with your mails :)<br><br><div><span class="gmail_quote">On 11/30/06, <b class="gmail_sendername">Januka Attanayake</b>
<<a href="mailto:jattanayake@gmail.com">jattanayake@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
Greetings,</div>
<div> </div>
<div>I have 3 questions today !</div>
<div> </div>
<div>1) I have the following piece of script that I use to mark t0 on the seismogram</div>
<div> </div>
<div>r 1 2 3</div>
<div>ppk --->(I mark t0 using the cursor)</div>
<div>setbb t0 &1, t0 &2, t0 &3</div>
<div>r 1 2 3</div>
<div>ch t0 %t0</div>
<div>w over</div>
<div> </div>
<div>say I have 500 seismograms, how do I replace " setbb t0 &1, t0 &2, t0 &3 " so that I can mark t0 all together?</div>
<div> </div>
<div>2) If I have again a bunch of seismograms that I need to seperate according to distance how do I do that? is there a script that I can use to do this?</div>
<div> </div>
<div>3) How can I make an ASCII file (2-column, time and amplitude) from a sac file that I down load from IRIS?</div>
<div> </div>
<div>Thank you ..!<br> </div>
<div>Januka. <br></div></blockquote></div><br>