<div>Hi,</div>
<div>I want to convert horizontal components in to transverse and radial components in SAC. Would anyone have a code/instructions to do this? You feedback is greatly appreciated.</div>
<div>&nbsp;</div>
<div>Januka.<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/10/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. Re:&nbsp;&nbsp;get the header in ascii (andreas wessel)
<br>&nbsp;&nbsp;2. Re:&nbsp;&nbsp;get header data (Peter Goldstein)<br>&nbsp;&nbsp;3. Re:&nbsp;&nbsp;get header data (Frederik Tilmann)<br>&nbsp;&nbsp;4.&nbsp;&nbsp;Passing commands to SAC using sac&lt;&lt;eof (andreas wessel)<br><br><br>----------------------------------------------------------------------
<br><br>Message: 1<br>Date: Tue, 10 Oct 2006 13:17:59 +1300<br>From: &quot;andreas wessel&quot; &lt;<a href="mailto:awbochum@gmail.com">awbochum@gmail.com</a>&gt;<br>Subject: Re: [SAC-HELP] get the header in ascii<br>To: 
<a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:2afddd310610091717i60eeb6e8r555d3574b922a3c@mail.gmail.com">2afddd310610091717i60eeb6e8r555d3574b922a3c@mail.gmail.com
</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br><br>Hello,<br><br>There is a way to write ascii, but it's far from perfect, as it is kind of<br>tricky to see which values belong to which variables.
<br>If you have the file in SAC memory, you can write it as ascii with<br><br>SAC&gt; WRITE ALPHA filename<br>and then look at the values in your terminal, the header is at the beginning<br>(it shows only the values, but not the names)
<br><br>$ head filename<br><br>Please let me know if you find a better way to do this.<br><br><br>Andreas<br><br><br><br>On 10/9/06, <a href="mailto:Heloise.Cadet@ujf-grenoble.fr">Heloise.Cadet@ujf-grenoble.fr</a> &lt;<a href="mailto:Heloise.Cadet@ujf-grenoble.fr">
Heloise.Cadet@ujf-grenoble.fr</a>&gt;<br>wrote:<br>&gt;<br>&gt;<br>&gt; Good mornning<br>&gt;<br>&gt; I'd like to know how to get the header of sac files into an ascii file?<br>&gt;<br>&gt; thank you<br>&gt;<br>&gt; Regards
<br>&gt;<br>&gt; Héloïse<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>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://www.iris.washington.edu/pipermail/sac-help/attachments/20061009/9d65a158/attachment-0001.html">
http://www.iris.washington.edu/pipermail/sac-help/attachments/20061009/9d65a158/attachment-0001.html</a><br><br>------------------------------<br><br>Message: 2<br>Date: Mon, 9 Oct 2006 18:02:14 -0700<br>From: Peter Goldstein &lt;
<a href="mailto:peterg@llnl.gov">peterg@llnl.gov</a>&gt;<br>Subject: Re: [SAC-HELP] get header data<br>To: &lt;<a href="mailto:Heloise.Cadet@ujf-grenoble.fr">Heloise.Cadet@ujf-grenoble.fr</a>&gt;<br>Cc: <a href="mailto:sac-help@iris.washington.edu">
sac-help@iris.washington.edu</a><br>Message-ID: &lt;p06110409c1509d5fdfa8@[<a href="http://192.168.1.5">192.168.1.5</a>]&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot; ; format=&quot;flowed&quot;<br><br><br>
As Art suggests, saclst will hopefully provide<br>the header list capabilities you need.<br>In the short term you can hopefully get by using listheader within a script and<br>redirect the output to the file you want.<br><br>
Something like the following script could be invoked as<br>sac_lh.csh &quot;your_filename&quot;<br>Note that the blank lines are needed to get all the headers and you'll<br>still have to edit the results if you want a particular format or to get rid of
<br>extraneous information and blank lines.<br><br><br>#!/bin/csh -xvf<br># sac_lh.csh: script to list sac header listing to standard out<br>sac&lt;&lt;eof<br>r $argv[1]<br>lh inclusive on<br><br><br><br><br>q<br>eof<br># end of sac_lh.csh
<br><br>&gt;Good morning,<br>&gt;<br>&gt;I'd like to get some information in the header but the subroutines getfhv<br>&gt;doesn't seem to work for depmin, depmax and dist<br>&gt;<br>&gt;in a fortran code:<br>&gt;<br>&gt;call GETFHV ('DEPMIN', depmin, nerr)
<br>&gt;<br>&gt;I got this error message:<br>&gt;ERROR: Undefined header field value. DEPMIN<br>&gt;<br>&gt;but it works for:<br>&gt;<br>&gt;call GETNHV ('NZYEAR', nyear, nerr)<br>&gt;<br>&gt;is there a bug? or an other way to extract data from the header?
<br>&gt;<br>&gt;Best regards<br>&gt;<br>&gt;HÈloÔse<br>&gt;CETE Nice, LGIT Grenoble<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><br><br>--<br><br>Peter Goldstein, Ph.D.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(925) 423-1231 (office)
<br>L-103, PO Box 808&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(925) 422-5844 (fax)<br>Livermore, CA 94551&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:peterg@llnl.gov">peterg@llnl.gov</a> (email)<br>web page: <a href="http://www.llnl.gov/sac">http://www.llnl.gov/sac</a><br><br>
<br><br>------------------------------<br><br>Message: 3<br>Date: Tue, 10 Oct 2006 09:29:53 +0100<br>From: Frederik Tilmann &lt;<a href="mailto:tilmann@esc.cam.ac.uk">tilmann@esc.cam.ac.uk</a>&gt;<br>Subject: Re: [SAC-HELP] get header data
<br>To: <a href="mailto:Heloise.Cadet@ujf-grenoble.fr">Heloise.Cadet@ujf-grenoble.fr</a><br>Cc: <a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>Message-ID: &lt;<a href="mailto:452B5A01.80609@esc.cam.ac.uk">
452B5A01.80609@esc.cam.ac.uk</a>&gt;<br>Content-Type: text/plain; charset=us-ascii; format=flowed<br><br>Heloise<br><br>these values all need to be calculated by sac so when the sac file is<br>generated externally, e.g. by rdseed they are generally left undefined.
<br><br>Try reading into sac and writing again, i.e.<br><br>sac&lt;&lt;eof<br>r file<br>w over<br>q<br>eof<br><br>Of course, for dist evla,evlo,stla,stlo all need to be set and lcalda<br>must be true.<br><br>Frederik<br><br>
<br><a href="mailto:Heloise.Cadet@ujf-grenoble.fr">Heloise.Cadet@ujf-grenoble.fr</a> wrote:<br>&gt; Good morning,<br>&gt;<br>&gt; I'd like to get some information in the header but the subroutines getfhv<br>&gt; doesn't seem to work for depmin, depmax and dist
<br>&gt;<br>&gt; in a fortran code:<br>&gt;<br>&gt; call GETFHV ('DEPMIN', depmin, nerr)<br>&gt;<br>&gt; I got this error message:<br>&gt; ERROR: Undefined header field value. DEPMIN<br>&gt;<br>&gt; but it works for:<br>&gt;
<br>&gt; call GETNHV ('NZYEAR', nyear, nerr)<br>&gt;<br>&gt; is there a bug? or an other way to extract data from the header?<br>&gt;<br>&gt; Best regards<br>&gt;<br>&gt; H?lo?se<br>&gt; CETE Nice, LGIT Grenoble<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><br>--<br>Frederik Tilmann<br>Bullard Laboratories&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tel. +44 1223 765545<br>Department of Earth Sciences&nbsp;&nbsp; Fax. +44 1223 360779<br>University of Cambridge&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;email: 
<a href="mailto:tilmann@esc.cam.ac.uk">tilmann@esc.cam.ac.uk</a><br>Madingley Road<br>Cambridge CB3 0EZ<br>UK<br><br><br><br><br><br><br>------------------------------<br><br>Message: 4<br>Date: Tue, 10 Oct 2006 23:30:39 +1300
<br>From: &quot;andreas wessel&quot; &lt;<a href="mailto:awbochum@gmail.com">awbochum@gmail.com</a>&gt;<br>Subject: [SAC-HELP] Passing commands to SAC using sac&lt;&lt;eof<br>To: <a href="mailto:sac-help@iris.washington.edu">
sac-help@iris.washington.edu</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:2afddd310610100330t118cd90cg717e7c22a91d94b@mail.gmail.com">2afddd310610100330t118cd90cg717e7c22a91d94b@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;
<br><br>Good evening,<br><br>I'm trying to pass some commands to SAC with &lt;&lt;<br>But all I get is the SAC startup lines:<br><br>SEISMIC ANALYSIS CODE [06/06/2005 (Version 100.1)]<br>Copyright 1995 Regents of the University of California
<br><br>.. and a blinking cursor a few lines below. All I can do then is kill the<br>script with Ctrl+C.<br>I am running a minimal example. I get the &quot;echo start&quot;, it's only the SAC<br>part that causes trouble.<br>
<br>#!/bin/sh<br>echo start<br>sac&lt;&lt;eof<br>r test.e<br>p<br>q<br>eof<br>exit 0<br><br>I also tried csh instead of sh, but that didn't help.<br>Are there any environmental things besides SACAUX I need to consider?<br>
<br>Thanks,<br>Andreas<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://www.iris.washington.edu/pipermail/sac-help/attachments/20061010/3ef772f6/attachment-0001.html">
http://www.iris.washington.edu/pipermail/sac-help/attachments/20061010/3ef772f6/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 16, Issue 2<br>***************************************<br></blockquote></div><br><br clear="all"><br>