<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> </div>
<div>Januka.<br><br> </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> <<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: get the header in ascii (andreas wessel)
<br> 2. Re: get header data (Peter Goldstein)<br> 3. Re: get header data (Frederik Tilmann)<br> 4. Passing commands to SAC using sac<<eof (andreas wessel)<br><br><br>----------------------------------------------------------------------
<br><br>Message: 1<br>Date: Tue, 10 Oct 2006 13:17:59 +1300<br>From: "andreas wessel" <<a href="mailto:awbochum@gmail.com">awbochum@gmail.com</a>><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> <<a href="mailto:2afddd310610091717i60eeb6e8r555d3574b922a3c@mail.gmail.com">2afddd310610091717i60eeb6e8r555d3574b922a3c@mail.gmail.com
</a>><br>Content-Type: text/plain; charset="iso-8859-1"<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> 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> <<a href="mailto:Heloise.Cadet@ujf-grenoble.fr">
Heloise.Cadet@ujf-grenoble.fr</a>><br>wrote:<br>><br>><br>> Good mornning<br>><br>> I'd like to know how to get the header of sac files into an ascii file?<br>><br>> thank you<br>><br>> Regards
<br>><br>> Héloïse<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>-------------- 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 <
<a href="mailto:peterg@llnl.gov">peterg@llnl.gov</a>><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: <p06110409c1509d5fdfa8@[<a href="http://192.168.1.5">192.168.1.5</a>]><br>Content-Type: text/plain; charset="iso-8859-1" ; format="flowed"<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 "your_filename"<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<<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>>Good morning,<br>><br>>I'd like to get some information in the header but the subroutines getfhv<br>>doesn't seem to work for depmin, depmax and dist<br>><br>>in a fortran code:<br>><br>>call GETFHV ('DEPMIN', depmin, nerr)
<br>><br>>I got this error message:<br>>ERROR: Undefined header field value. DEPMIN<br>><br>>but it works for:<br>><br>>call GETNHV ('NZYEAR', nyear, nerr)<br>><br>>is there a bug? or an other way to extract data from the header?
<br>><br>>Best regards<br>><br>>HÈloÔse<br>>CETE Nice, LGIT Grenoble<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>--<br><br>Peter Goldstein, Ph.D. (925) 423-1231 (office)
<br>L-103, PO Box 808 (925) 422-5844 (fax)<br>Livermore, CA 94551 <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 <<a href="mailto:tilmann@esc.cam.ac.uk">tilmann@esc.cam.ac.uk</a>><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: <<a href="mailto:452B5A01.80609@esc.cam.ac.uk">
452B5A01.80609@esc.cam.ac.uk</a>><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<<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>> Good morning,<br>><br>> I'd like to get some information in the header but the subroutines getfhv<br>> doesn't seem to work for depmin, depmax and dist
<br>><br>> in a fortran code:<br>><br>> call GETFHV ('DEPMIN', depmin, nerr)<br>><br>> I got this error message:<br>> ERROR: Undefined header field value. DEPMIN<br>><br>> but it works for:<br>>
<br>> call GETNHV ('NZYEAR', nyear, nerr)<br>><br>> is there a bug? or an other way to extract data from the header?<br>><br>> Best regards<br>><br>> H?lo?se<br>> CETE Nice, LGIT Grenoble<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>--<br>Frederik Tilmann<br>Bullard Laboratories Tel. +44 1223 765545<br>Department of Earth Sciences Fax. +44 1223 360779<br>University of Cambridge 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: "andreas wessel" <<a href="mailto:awbochum@gmail.com">awbochum@gmail.com</a>><br>Subject: [SAC-HELP] Passing commands to SAC using sac<<eof<br>To: <a href="mailto:sac-help@iris.washington.edu">
sac-help@iris.washington.edu</a><br>Message-ID:<br> <<a href="mailto:2afddd310610100330t118cd90cg717e7c22a91d94b@mail.gmail.com">2afddd310610100330t118cd90cg717e7c22a91d94b@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"
<br><br>Good evening,<br><br>I'm trying to pass some commands to SAC with <<<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 "echo start", it's only the SAC<br>part that causes trouble.<br>
<br>#!/bin/sh<br>echo start<br>sac<<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>