<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>
<div><span class="gmail_quote">On 11/23/06, <b class="gmail_sendername"><a href="mailto:sac-help-request@iris.washington.edu">sac-help-request@iris.washington.edu</a></b> <<a href="mailto:sac-help-request@iris.washington.edu">
sac-help-request@iris.washington.edu</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send sac-help mailing list submissions to<br> <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu
</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://www.iris.washington.edu/mailman/listinfo/sac-help">http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br>or, via email, send a message with subject or body 'help' to
<br> <a href="mailto:sac-help-request@iris.washington.edu">sac-help-request@iris.washington.edu</a><br><br>You can reach the person managing the list at<br> <a href="mailto:sac-help-owner@iris.washington.edu">
sac-help-owner@iris.washington.edu</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of sac-help digest..."<br><br><br>Today's Topics:<br><br> 1. naming files (Januka Attanayake)
<br> 2. Re: naming files (andreas wessel)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 23 Nov 2006 00:31:15 -0500<br>From: "Januka Attanayake" <
<a href="mailto:jattanayake@gmail.com">jattanayake@gmail.com</a>><br>Subject: [SAC-HELP] naming files<br>To: <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>Message-ID:<br> <<a href="mailto:984f6f900611222131s12305e84mbc738dddf0ed8c7d@mail.gmail.com">
984f6f900611222131s12305e84mbc738dddf0ed8c7d@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Greetings,<br>I have a question regarding naming files. Assume that I have a sac file by
<br>the name<br>2006.300.33.SDMD.BHZ.R.SAC<br>say, If I want to extract only the 2006.300.33.SDMD part for naming purposes<br>after I do certain calculations on it, how do I do it?<br>would something like this work?<br><br>
set bb name $1$.$STATION$ ?<br>w %name.z<br><br>It didn't so far for me?<br>Would like to hear any suggestions from any one out there....<br><br>Thank you.<br><br>Januka<br><br>On 11/14/06, <a href="mailto:sac-help-request@iris.washington.edu">
sac-help-request@iris.washington.edu</a> <<br><a href="mailto:sac-help-request@iris.washington.edu">sac-help-request@iris.washington.edu</a>> wrote:<br>><br>> Send sac-help mailing list submissions to<br>>
<a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>><br>> To subscribe or unsubscribe via the World Wide Web, visit<br>> <a href="http://www.iris.washington.edu/mailman/listinfo/sac-help">
http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br>> or, via email, send a message with subject or body 'help' to<br>> <a href="mailto:sac-help-request@iris.washington.edu">sac-help-request@iris.washington.edu
</a><br>><br>> You can reach the person managing the list at<br>> <a href="mailto:sac-help-owner@iris.washington.edu">sac-help-owner@iris.washington.edu</a><br>><br>> When replying, please edit your Subject line so it is more specific
<br>> than "Re: Contents of sac-help digest..."<br>><br>><br>> Today's Topics:<br>><br>> 1. Re: Cut command (andreas wessel)<br>><br>><br>> ----------------------------------------------------------------------
<br>><br>> Message: 1<br>> Date: Tue, 14 Nov 2006 13:44:57 +1300<br>> From: "andreas wessel" <<a href="mailto:awbochum@gmail.com">awbochum@gmail.com</a>><br>> Subject: Re: [SAC-HELP] Cut command
<br>> To: "Talal Merghelani" <<a href="mailto:talalmg1@yahoo.com">talalmg1@yahoo.com</a>><br>> Cc: SAC HELP <<a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a>><br>> Message-ID:
<br>> <<a href="mailto:2afddd310611131644k148e9719x21a328c850048ca8@mail.gmail.com">2afddd310611131644k148e9719x21a328c850048ca8@mail.gmail.com</a>><br>> Content-Type: text/plain; charset="iso-8859-1"
<br>><br>> Hi Talal,<br>><br>> you could create a shellscript that runs your cutting macro for every<br>> sac-file in the current directory:<br>> I used that to byteswap a lot of files at once:<br>><br>
> for j in $*<br>> do<br>> fn=$j<br>> echo sac_starts_here %%%%%%%%%%%%%%%%<br>> /usr/local/bin/sac /macro/macro.m $fn<br>> done<br>> exit 0<br>><br>> You have to adjust the pathes to point to your sac binary and to the macro
<br>> you want to use.<br>> The macro looks like this:<br>><br>> r $1<br>> "some other commands"<br>> q<br>><br>><br>> If you execute the shellscript with<br>> "script.sh *.SAC"
<br>> the for loop will cycle through all the .SAC files, read every single one<br>> in<br>> sac and then execute the commands in the macro.<br>> You still would have to figure out a way to calculate the parameters for
<br>> every file, but this depends on what you want.<br>><br>> ciao,<br>> Andreas<br>><br>><br>><br>><br>> On 11/14/06, Talal Merghelani <<a href="mailto:talalmg1@yahoo.com">talalmg1@yahoo.com
</a>> wrote:<br>> ><br>> > Hi all<br>> ><br>> > i wanna use cut command for many files( 40~60 files) to cut<br>> S-wave(usually<br>> > 3-5sec time window), for each file they have their own values for cut
<br>> > parameters(depend on S-wave).<br>> ><br>> > i have reviewed the sac manual for cut command. but, there is no such<br>> way<br>> > to select the command cut values indepently for each file..?
<br>> ><br>> > its time consuming doing this manaully...!!<br>> ><br>> > there is any systematic way for doing this by writing a macros command<br>> > file..?<br>> ><br>> > of course i care about the result quality. mean, should be the time that
<br>> i<br>> > wanna to cut it exaclty..!!<br>> ><br>> > any idea any help..!! please, attached with an example..<br>> ><br>> > thank you in advance<br>> > Talal<br>> ><br>> >
P.S. the input is in *.SAC file and the output is *.TXT file.<br>> ><br>> > ------------------------------<br>> ><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...
<br>> URL:<br>> <a href="http://www.iris.washington.edu/pipermail/sac-help/attachments/20061113/b953fb91/attachment-0001.html">http://www.iris.washington.edu/pipermail/sac-help/attachments/20061113/b953fb91/attachment-0001.html
</a><br>><br>> ------------------------------<br>><br>> _______________________________________________<br>> sac-help mailing list<br>> <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu
</a><br>> <a href="http://www.iris.washington.edu/mailman/listinfo/sac-help">http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br>><br>><br>> End of sac-help Digest, Vol 17, Issue 9<br>> ***************************************
<br>><br><br><br><br>--<br>"Nothing can start to exist nor can cease to exist, only transformation is<br>possible"<br><br>Januka Attanayake<br>Center for Integrative Geosciences - Solid Earth Geophysics<br>University of Connecticut
<br>Beach Hall U-2045<br>354,Mansfield Rd;<br>Storrs.CT 06269<br><br>Tel: 1 860 486 0475<br><a href="http://www.geocities.com/jattanayake">http://www.geocities.com/jattanayake</a><br><a href="http://earth.uconn.edu/">http://earth.uconn.edu/
</a><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://www.iris.washington.edu/pipermail/sac-help/attachments/20061122/f2e73296/attachment-0001.html">http://www.iris.washington.edu/pipermail/sac-help/attachments/20061122/f2e73296/attachment-0001.html
</a><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 23 Nov 2006 18:47:04 +1300<br>From: "andreas wessel" <<a href="mailto:awbochum@gmail.com">awbochum@gmail.com</a>><br>Subject: Re: [SAC-HELP] naming files
<br>To: <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>Message-ID:<br> <<a href="mailto:2afddd310611222147m95030aak7d68f61efa8c5891@mail.gmail.com">2afddd310611222147m95030aak7d68f61efa8c5891@mail.gmail.com
</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi there,<br><br>I think you have just a typing error.<br><br>- setbb goes together, without a space..<br>- to take a variable and append something, you have to put the delimiter at
<br>the end of the name of the var, just as you did with the $<br><br>setbb name 1234<br>sc echo %name%567<br><br>You didn't post what error msg you get, but I think it is "Could not find<br>VARS variable blackboard", because Sac is looking for a variable "
name.z"<br>instead of "name"<br><br>good luck<br>andreas<br><br>On 11/23/06, Januka Attanayake <<a href="mailto:jattanayake@gmail.com">jattanayake@gmail.com</a>> wrote:<br>><br>> 2006.300.33.SDMD.BHZ.R.SAC
<br>><br>I want to extract only the 2006.300.33.SDMD part for naming purposes after I<br>> do certain calculations on it<br><br>set bb name $1$.$STATION$ ?<br>> w %name.z<br>><br>><br>-------------- next part --------------
<br>An HTML attachment was scrubbed...<br>URL: <a href="http://www.iris.washington.edu/pipermail/sac-help/attachments/20061122/cdc42f96/attachment-0001.html">http://www.iris.washington.edu/pipermail/sac-help/attachments/20061122/cdc42f96/attachment-0001.html
</a><br><br>------------------------------<br><br>_______________________________________________<br>sac-help mailing list<br><a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br><a href="http://www.iris.washington.edu/mailman/listinfo/sac-help">
http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br><br><br>End of sac-help Digest, Vol 17, Issue 12<br>****************************************<br></blockquote></div><br><br clear="all"><br>-- <br>"Nothing can start to exist nor can cease to exist, only transformation is possible"
<br><br>Januka Attanayake<br>Center for Integrative Geosciences - Earthquake Seismology<br>University of Connecticut<br>Beach Hall U-2045<br>354,Mansfield Rd;<br>Storrs.CT 06269<br><br>Tel: 1 860 486 0475<br><a href="http://www.geocities.com/jattanayake">
http://www.geocities.com/jattanayake</a><br><a href="http://earth.uconn.edu/">http://earth.uconn.edu/</a>