<div>Thanks Eva ! will try that and see....</div>
<div> </div>
<div>Januka.<br><br> </div>
<div><span class="gmail_quote">On 12/4/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. Re: sac-help Digest, Vol 18, Issue 3 (Eva-Maria Rumpfhuber)
<br> 2. Plot command (Graphics Display problems..!!) (Talal Merghelani)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sun, 03 Dec 2006 16:16:27 -0600<br>From: Eva-Maria Rumpfhuber <
<a href="mailto:erumpfhuber@ou.edu">erumpfhuber@ou.edu</a>><br>Subject: [SAC-HELP] Re: sac-help Digest, Vol 18, Issue 3<br>To: <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>Message-ID: <
000a01c71728$ad0e6180$88c40f81@nb32rem><br>Content-Type: text/plain; charset=iso-8859-1<br><br>Hey Januka,<br><br>I usually use a csh-script to sort data, and use sac just to extract the<br>header information. You can try something like this, the following script
<br>will extract you the header information and store it in a file I called<br>"rayp.list".<br><br>Let me know, if it doesn't work.<br>Good luck, eva<br><br><br>#/bin/csh<br># This is a script to extract header information from a
<br># sac file.<br><br># Selects all seismograms sorted by events<br># (you need to change print $2 to what works for you)<br>set event = ` ls *.sac | nawk -F. '{print $2}' | sort | uniq `<br><br>@ i = 1<br>@ end = $#event + 1
<br>echo Number of events: $#event<br><br># Loop over the events<br>while ( $i < $end )<br>echo Processing event: $event[$i]<br><br>#<br>set file_r = *"."$event[$i]".sac"<br>echo Input file: $file_r
<br><br># start sac and read+write header values<br>sac <<eof<br>r $file_r<br>setbb evid $event[$i]<br>setbb lat &1,evla<br>setbb lon &1,evlo<br>setbb dp &1,evdp<br>setbb gcdeg &1,gcarc<br>setbb gckm &1,dist
<br>setbb baz1 &1,baz<br>setbb rayp &1,user0<br>getbb TO temp.file names off newline off evid baz1 rayp<br>quit<br>eof<br><br>cat temp.file >>rayp.list<br>\rm -f temp.file<br><br>@ i = $i + 1<br>end<br><br><br>
<br>----- Original Message -----<br>From: <<a href="mailto:sac-help-request@iris.washington.edu">sac-help-request@iris.washington.edu</a>><br>To: <<a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu
</a>><br>Sent: Sunday, December 03, 2006 2:00 PM<br>Subject: sac-help Digest, Vol 18, Issue 3<br><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. GCARC (Januka Attanayake)<br>><br>><br>> ----------------------------------------------------------------------<br>><br>> Message: 1<br>> Date: Sat, 2 Dec 2006 22:41:04 -0500<br>> From: "Januka Attanayake" <
<a href="mailto:jattanayake@gmail.com">jattanayake@gmail.com</a>><br>> Subject: [SAC-HELP] GCARC<br>> To: <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>> Message-ID:<br>> <
<a href="mailto:984f6f900612021941r23fd0871xdf3e19756ebbd772@mail.gmail.com">984f6f900612021941r23fd0871xdf3e19756ebbd772@mail.gmail.com</a>><br>> Content-Type: text/plain; charset="iso-8859-1"<br>><br>
> Greetings,<br>> I am interested in seperating a bunch of seismograms according to<br>different<br>> GCARC values, for example, bunch up all the seismograms that are between<br>> 100 & 120 together ... so on and so forth. Is it possible to do this in
<br>SAC?<br>> any clues?<br>><br>> Thank you.<br>><br>> Januka.<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL:<br><a href="http://www.iris.washington.edu/pipermail/sac-help/attachments/20061202/1d217264/attachment-0001.html">
http://www.iris.washington.edu/pipermail/sac-help/attachments/20061202/1d217264/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 18, Issue 3<br>> ***************************************<br><br><br><br>***************************************************************************<br>Eva-Maria Rumpfhuber
<br><br>University of Texas at El Paso / University of Oklahoma<br>810 Sarkeys Energy Center<br>100 E. Boyd Street<br>Norman, OK 73019-1009<br>U.S.A.<br><br>phone: +1-405-325-1563<br>email: <a href="mailto:erumpfhuber@ou.edu">
erumpfhuber@ou.edu</a><br>web: <a href="http://www.geo.utep.edu/pub/eva">http://www.geo.utep.edu/pub/eva</a><br>***************************************************************************<br>Wheresoever you go, go with all your heart.
<br><Confucius><br><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Sun, 3 Dec 2006 23:02:20 -0800 (PST)<br>From: Talal Merghelani <<a href="mailto:talalmg1@yahoo.com">talalmg1@yahoo.com</a>
><br>Subject: [SAC-HELP] Plot command (Graphics Display problems..!!)<br>To: SAC HELP <<a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a>><br>Message-ID: <<a href="mailto:20061204070220.9409.qmail@web36609.mail.mud.yahoo.com">
20061204070220.9409.qmail@web36609.mail.mud.yahoo.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi their<br><br>i was trying to use plot command to plot sac file for picking. but, actually, i don't know what is going on. when i tried the plot command it seems work for me fine. but, later on its won't work good with error message.
<br><br>and same message appear all the time when i use various plot command like Plot1, plot2....and Plotpk...!! its never plot anything with error message...!!<br><br>terminal log file:<br>-------------------------------------------------------------------------------------------------------------------------
<br>SAC> r two*.sac<br>twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac twoCHB012EW.sac twoCHB012NS.sac twoCHB012UD.sac<br>SAC> p twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command: p '<br>
ILLEGAL OPTION: ^<br>Waiting<br>Waiting<br>Waiting<br>Waiting<br>Waiting<br>SAC> p1 twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command: p1 '<br>ILLEGAL OPTION: ^
<br>SAC> p2 twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command: p2 '<br>ILLEGAL OPTION: ^<br>SAC> plotpk twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command: plotpk '
<br>ILLEGAL OPTION: ^<br>SAC> plotpk twoCHB003EW.sac<br>ERROR interpreting command: plotpk ' ^<br>ILLEGAL OPTION: ^<br>SAC> r twoCHB003EW.sac<br>SAC> p twoCHB003EW.sac
<br>ERROR interpreting command: p '<br>ILLEGAL OPTION: ^<br>SAC> bg df<br>X connection to <a href="http://melon.sci.ibaraki.ac.jp:0">melon.sci.ibaraki.ac.jp:0</a>.0 broken (explicit kill or server shutdown).
<br><br>SAC> r twoCHB003EW.sac<br>SAC> p twoCHB003EW.sac<br>ERROR interpreting command: p '<br>ILLEGAL OPTION: ^<br>SAC> p twoCHB003EW.sac<br>ERROR interpreting command: p '<br>ILLEGAL OPTION: ^
<br>XIO: fatal IO error 131 (Connection reset by peer) on X server "<a href="http://melon.sci.ibaraki.ac.jp:0">melon.sci.ibaraki.ac.jp:0</a>.0"<br> after 48 requests (45 known processed) with 4 events remaining.
<br><br>---------------------------------------------------------------------------------------------------------------------------<br><br><br>i don't understand why is that...? may you are going to say you have to add some line at your config file .cshrc. and actually, i already did before..as follow:
<br><br>setenv SACAUX /export/home/share/sac/aux<br>setenv SACGRAPHICS xwindows<br>setenv DISPLAY <a href="http://melon.sci.ibaraki.ac.jp:0">melon.sci.ibaraki.ac.jp:0</a>.0<br><br>i'm working from my current PC running XP pro. and contacting Unix by ASTEX virtual software. so, i can display Unix terminal and work with Sac at my PC.
<br><br>this is make me crazy...!!! HOW DO I FIX THIS...?<br><br>waiting for help<br><br>regards<br>Talal<br><br><br><br>---------------------------------<br>Want to start your own business? Learn how on Yahoo! Small Business.
<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://www.iris.washington.edu/pipermail/sac-help/attachments/20061203/051f72e6/attachment-0001.html">http://www.iris.washington.edu/pipermail/sac-help/attachments/20061203/051f72e6/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 18, Issue 4<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>