<div>Thanks Eva ! will try that and see....</div>
<div>&nbsp;</div>
<div>Januka.<br><br>&nbsp;</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> &lt;<a href="mailto:sac-help-request@iris.washington.edu">
sac-help-request@iris.washington.edu</a>&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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 &quot;Re: Contents of sac-help digest...&quot;<br><br><br>Today's Topics:<br><br>&nbsp;&nbsp;1.&nbsp;&nbsp;Re: sac-help Digest, Vol 18, Issue 3 (Eva-Maria Rumpfhuber)
<br>&nbsp;&nbsp;2.&nbsp;&nbsp;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 &lt;
<a href="mailto:erumpfhuber@ou.edu">erumpfhuber@ou.edu</a>&gt;<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: &lt;
000a01c71728$ad0e6180$88c40f81@nb32rem&gt;<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>&quot;rayp.list&quot;.<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 &lt; $end )<br>echo Processing event: $event[$i]<br><br>#<br>set file_r = *&quot;.&quot;$event[$i]&quot;.sac&quot;<br>echo Input file: $file_r
<br><br># start sac and read+write header values<br>sac &lt;&lt;eof<br>r $file_r<br>setbb evid $event[$i]<br>setbb lat &amp;1,evla<br>setbb lon &amp;1,evlo<br>setbb dp &amp;1,evdp<br>setbb gcdeg &amp;1,gcarc<br>setbb gckm &amp;1,dist
<br>setbb baz1 &amp;1,baz<br>setbb rayp &amp;1,user0<br>getbb TO temp.file names off newline off evid baz1 rayp<br>quit<br>eof<br><br>cat temp.file &gt;&gt;rayp.list<br>\rm -f temp.file<br><br>@ i = $i + 1<br>end<br><br><br>
<br>----- Original Message -----<br>From: &lt;<a href="mailto:sac-help-request@iris.washington.edu">sac-help-request@iris.washington.edu</a>&gt;<br>To: &lt;<a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu
</a>&gt;<br>Sent: Sunday, December 03, 2006 2:00 PM<br>Subject: sac-help Digest, Vol 18, Issue 3<br><br><br>&gt; Send sac-help mailing list submissions to<br>&gt; <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu
</a><br>&gt;<br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt; <a href="http://www.iris.washington.edu/mailman/listinfo/sac-help">http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br>&gt; or, via email, send a message with subject or body 'help' to
<br>&gt; <a href="mailto:sac-help-request@iris.washington.edu">sac-help-request@iris.washington.edu</a><br>&gt;<br>&gt; You can reach the person managing the list at<br>&gt; <a href="mailto:sac-help-owner@iris.washington.edu">
sac-help-owner@iris.washington.edu</a><br>&gt;<br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than &quot;Re: Contents of sac-help digest...&quot;<br>&gt;<br>&gt;<br>&gt; Today's Topics:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;1.&nbsp;&nbsp;GCARC (Januka Attanayake)<br>&gt;<br>&gt;<br>&gt; ----------------------------------------------------------------------<br>&gt;<br>&gt; Message: 1<br>&gt; Date: Sat, 2 Dec 2006 22:41:04 -0500<br>&gt; From: &quot;Januka Attanayake&quot; &lt;
<a href="mailto:jattanayake@gmail.com">jattanayake@gmail.com</a>&gt;<br>&gt; Subject: [SAC-HELP] GCARC<br>&gt; To: <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>&gt; Message-ID:<br>&gt; &lt;
<a href="mailto:984f6f900612021941r23fd0871xdf3e19756ebbd772@mail.gmail.com">984f6f900612021941r23fd0871xdf3e19756ebbd772@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>&gt;<br>
&gt; Greetings,<br>&gt; I am interested in seperating&nbsp;&nbsp;a bunch of seismograms according to<br>different<br>&gt; GCARC values, for example, bunch up all the seismograms&nbsp;&nbsp;that are between<br>&gt; 100 &amp; 120 together ... so on and so forth. Is it possible to do this in
<br>SAC?<br>&gt; any clues?<br>&gt;<br>&gt; Thank you.<br>&gt;<br>&gt; Januka.<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; 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>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; sac-help mailing list
<br>&gt; <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>&gt; <a href="http://www.iris.washington.edu/mailman/listinfo/sac-help">http://www.iris.washington.edu/mailman/listinfo/sac-help</a>
<br>&gt;<br>&gt;<br>&gt; End of sac-help Digest, Vol 18, Issue 3<br>&gt; ***************************************<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>&lt;Confucius&gt;<br><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Sun, 3 Dec 2006 23:02:20 -0800 (PST)<br>From: Talal Merghelani &lt;<a href="mailto:talalmg1@yahoo.com">talalmg1@yahoo.com</a>
&gt;<br>Subject: [SAC-HELP] Plot command (Graphics Display problems..!!)<br>To: SAC HELP &lt;<a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a>&gt;<br>Message-ID: &lt;<a href="mailto:20061204070220.9409.qmail@web36609.mail.mud.yahoo.com">
20061204070220.9409.qmail@web36609.mail.mud.yahoo.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<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&gt; r two*.sac<br>twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac twoCHB012EW.sac twoCHB012NS.sac twoCHB012UD.sac<br>SAC&gt; p twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command:&nbsp;&nbsp;p '<br>
ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>Waiting<br>Waiting<br>Waiting<br>Waiting<br>Waiting<br>SAC&gt; p1 twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command:&nbsp;&nbsp;p1 '<br>ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^
<br>SAC&gt; p2 twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command:&nbsp;&nbsp;p2 '<br>ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>SAC&gt; plotpk twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac<br>ERROR interpreting command:&nbsp;&nbsp;plotpk '
<br>ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>SAC&gt; plotpk twoCHB003EW.sac<br>ERROR interpreting command:&nbsp;&nbsp;plotpk '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>SAC&gt; r twoCHB003EW.sac<br>SAC&gt; p twoCHB003EW.sac
<br>ERROR interpreting command:&nbsp;&nbsp;p '<br>ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>SAC&gt; 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&gt; r twoCHB003EW.sac<br>SAC&gt; p twoCHB003EW.sac<br>ERROR interpreting command:&nbsp;&nbsp;p '<br>ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>SAC&gt; p twoCHB003EW.sac<br>ERROR interpreting command:&nbsp;&nbsp;p '<br>ILLEGAL OPTION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^
<br>XIO:&nbsp;&nbsp;fatal IO error 131 (Connection reset by peer) on X server &quot;<a href="http://melon.sci.ibaraki.ac.jp:0">melon.sci.ibaraki.ac.jp:0</a>.0&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; 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>&quot;Nothing can start to exist nor can cease to exist, only transformation is possible&quot;
<br><br>Januka Attanayake<br>Center for Integrative Geosciences -&nbsp;&nbsp;Earthquake Seismology<br>University of Connecticut<br>Beach Hall&nbsp;&nbsp; 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>