Thread: Re: sac-help Digest, Vol 64, Issue 2

Started: 2011-01-31 16:09:24
Last activity: 2011-01-31 16:09:24
Topics: SAC Help
George Sand França
2011-01-31 16:09:24
Dear sierra

For update Azimuth and distance (DIST and GCARC) you need to change evdp, too!

cheers



Prof. George Sand L. A. de França
Observatório Sismológico
Universidade de Brasília
SG 13 Campus Universitário Darcy Ribeiro
70910-900
55 61 33404055
55 61 93033829 (pessoal)
www.obsis.unb.br
www.tremordeterra.blogspot.com

"Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic. "



sac-help-request<at>iris.washington.edu escreveu:
Send sac-help mailing list submissions to
sac-help<at>iris.washington.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://www.iris.washington.edu/mailman/listinfo/sac-help
or, via email, send a message with subject or body 'help' to
sac-help-request<at>iris.washington.edu

You can reach the person managing the list at
sac-help-owner<at>iris.washington.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sac-help digest..."


Today's Topics:

1. cutim issue for 101.4 (Tim MacDonald)
2. Problem with depmec (Alireza Alinaghi)
3. distance and azimuth (Sierra Boyd)
4. installing SAC on UBUNTU (Abhey Bansal)
5. Re: installing SAC on UBUNTU (Onur Tan)
6. Re: installing SAC on UBUNTU (Onur Tan)
7. bandpass filter (Sierra Boyd)
8. transfer command (Fatih Sevim)
9. Fwd: transfer command (Sheila Peacock)


----------------------------------------------------------------------

Message: 1
Date: Thu, 6 Jan 2011 10:25:39 -0800
From: Tim MacDonald <tmacdonald<at>usgs.gov>
Subject: [SAC-HELP] cutim issue for 101.4
To: sac-help<at>iris.washington.edu
Message-ID: <AEF34B86-804A-4423-AAAD-00D80F236E26<at>usgs.gov>
Content-Type: text/plain; charset=us-ascii

I am having a problem getting cutim to work on the 101.4 release for Linux. I got a segmentation fault error when using cutim as follows:

SAC> read *
2002.110.10.49.30.0000.CN.BBB..BHE.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHN.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHZ.D.SAC 2002.110.10.49.30.0000.CN.BIB..EHZ.D.SAC
SAC> cutim 100 200
Segmentation fault


I tracked the segmentation fault error to the gcCollect routine in gcCollect.c and made the following changes to the code:

/*
struct CSStree *tree = (struct CSStree *) dblList;
struct wftagList *wtL = tree->wtHead ;
struct sensorList *seL = tree->seHead ;
struct sitechanList *scL = tree->scHead ;
struct siteList *siL = tree->slHead ;
struct instrumentList *inL = tree->inHead ;
struct originList *orL = tree->orHead ;
struct eventList *evL = tree->evHead ;

if(!tree)return;
*/
struct CSStree *tree = (struct CSStree *) dblList;
struct wftagList *wtL;
struct sensorList *seL;
struct sitechanList *scL;
struct siteList *siL;
struct instrumentList *inL;
struct originList *orL;
struct eventList *evL;

if(!tree)return;

wtL = tree->wtHead ;
seL = tree->seHead ;
scL = tree->scHead ;
siL = tree->slHead ;
inL = tree->inHead ;
orL = tree->orHead ;
evL = tree->evHead ;

The changes cured the segmentation fault error but now I get error 1301 when I try to plot as follows:

SAC> read *
2002.110.10.49.30.0000.CN.BBB..BHE.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHN.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHZ.D.SAC 2002.110.10.49.30.0000.CN.BIB..EHZ.D.SAC
SAC> cutim 100 200
SAC> plot1
ERROR 1301: No data files read in.

If I don't issue the cutim command the plot1 works fine. Also if I use the OSX binaries and the same data files everything works fine!

Any ideas?
Thanks!


------------------------------

Message: 2
Date: Wed, 12 Jan 2011 14:43:10 +0100
From: Alireza Alinaghi <alireza.alinaghi<at>gmail.com>
Subject: [SAC-HELP] Problem with depmec
To: sac-help<at>iris.washington.edu
Message-ID:
<AANLkTinekp4Ky9SoC4wtZzHK-ys4kjFckvFkVZWNEQOo<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi

I have been trying to use depmec in sac but after i saw matlab logo flashing
by, I got the following error message in sac command window:

*Allocating and filling Matlab workspace arrays... *
*Copying to Matlab workspace ... *
*Done.*
*>> ??? Undefined function or variable 'sacdepmec'.*
*
*
Could you please tell me what is the source of the problem and how i can fix
it?

I am using sac version 101.0 and matlab (7)R14 on Fedora 10 linux machine.

Thank you in advance,

Alireza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20110112/7a0187cd/attachment-0001.htm

------------------------------

Message: 3
Date: Wed, 12 Jan 2011 21:24:52 -0800
From: Sierra Boyd <geophysia<at>gmail.com>
Subject: [SAC-HELP] distance and azimuth
To: sac-help<at>iris.washington.edu
Message-ID:
<AANLkTikC-y0w4pLA9cRptMh80J7cpFygkzTC5UTVbgrs<at>mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I would like to know how to get the distance and azimuth of a station
with respect to the hypocentral info, evla and evlo.

I read in a sac file that came from IRIS. I then change the values of
evla and evlo. I then listhdr inclusive to look at all the header
values. The distance and azimuth are not updated.

However I can get the distance and azimuth of a station with respect
to an event when I download miniSEED data from another source and
convert it to SAC format. I then change the values of evla and evlo as
above and the distance and azimuth are listed.

Any clarification as to why my first attempt does not reveal an
updated distance and azimuth would be greatly appreciated.

Best regards,
--sierra


------------------------------

Message: 4
Date: Thu, 13 Jan 2011 12:46:44 +0530
From: Abhey Bansal <abhey.bansal<at>gmail.com>
Subject: [SAC-HELP] installing SAC on UBUNTU
To: sac-help<at>iris.washington.edu
Message-ID:
<AANLkTimnFM014Nvg4u+nCusivSi8m2ORHpdCsnTOd=u4<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Recently I was installing SAC on my laptop running on UBUNTU but when I
modified my ~/.bashrc file adding following two lines
export SACHOME=/usr/local/sac
source ${SACHOME}/bin/sacinit.csh
and after saving the file. I run following command
source ~/.bashrc
the following error message come.
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)

Could any one please help me sorting out the problem.
Thanking you
Abhey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20110113/686437ff/attachment-0001.htm

------------------------------

Message: 5
Date: Thu, 13 Jan 2011 10:00:04 +0200
From: Onur Tan <Onur.Tan<at>mam.gov.tr>
Subject: Re: [SAC-HELP] installing SAC on UBUNTU
To: Sac-Help <sac-help<at>iris.washington.edu>
Message-ID: <C9547DA4.17E4C%onur.tan<at>mam.gov.tr>
Content-Type: text/plain; charset="utf-8"

Hi,


You source Cshell file ?sacinit.csh? in bash. This can be problem.
bash can not understand Cshell code.

o.

Dr. Onur TAN
---------------------------------------------- 40.7866N 29.4500E ---------
T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s?
TUBITAK Marmara Research Center, Earth and Marine Sciences Institute
Gebze - Kocaeli - TURKEY


On 13.01.2011 09:16, "Abhey Bansal" <abhey.bansal<at>gmail.com> wrote:

Recently I was installing SAC on my laptop running on UBUNTU but when I modified my ~/.bashrc file adding following two lines
export SACHOME=/usr/local/sac
source ${SACHOME}/bin/sacinit.csh
and after saving the file. I run following command
source ~/.bashrc
the following error message come.
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)

Could any one please help me sorting out the problem.
Thanking you
Abhey








------------------------------

Message: 6
Date: Thu, 13 Jan 2011 10:02:30 +0200
From: Onur Tan <Onur.Tan<at>mam.gov.tr>
Subject: Re: [SAC-HELP] installing SAC on UBUNTU
To: Sac-Help <sac-help<at>iris.washington.edu>
Message-ID: <C9547E36.17E4D%onur.tan<at>mam.gov.tr>
Content-Type: text/plain; charset="utf-8"

Hi again,

use sacinit.sh for bash

onur

Dr. Onur TAN
---------------------------------------------- 40.7866N 29.4500E ---------
T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s?
TUBITAK Marmara Research Center, Earth and Marine Sciences Institute
Gebze - Kocaeli - TURKEY



On 13.01.2011 09:16, "Abhey Bansal" <abhey.bansal<at>gmail.com> wrote:

Recently I was installing SAC on my laptop running on UBUNTU but when I modified my ~/.bashrc file adding following two lines
export SACHOME=/usr/local/sac
source ${SACHOME}/bin/sacinit.csh
and after saving the file. I run following command
source ~/.bashrc
the following error message come.
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)

Could any one please help me sorting out the problem.
Thanking you
Abhey









------------------------------

Message: 7
Date: Thu, 20 Jan 2011 18:43:01 -0800
From: Sierra Boyd <geophysia<at>gmail.com>
Subject: [SAC-HELP] bandpass filter
To: sac-help<at>iris.washington.edu
Message-ID:
<AANLkTimc_kL6tL9FC8=VBfqn_2XsPBnNrJcpFAjKPLbC<at>mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I have a question about the number of poles for a Butterworth filter
when there are 2 passes.

When n, the number of poles, is not specified, is the default value of
2 used? Does this mean there are 4 poles with 2 passes when n is not
specified?

Suppose n = 4 and p = 2. Are there 8 poles?

Best regards,
--Sierra


------------------------------

Message: 8
Date: Mon, 24 Jan 2011 16:52:24 +0200
From: Fatih Sevim <Fatih.Sevim<at>mam.gov.tr>
Subject: [SAC-HELP] transfer command
To: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Message-ID:
<9E88105FE4AC8C47BD6D00EB9831482F1E863D39FE<at>posta.mam.gov.tr>
Content-Type: text/plain; charset="iso-8859-1"


Hi,

I have a pole zero files to avoid instrument response from signal and I use the command like " transfer from polezero subtype pz_file ". Is this the true way to obtain signal which doesn't include instrument response.
Or I must add " to vel " end of the command line ?

Best regards,

Fatih.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20110124/bbc3f839/attachment-0001.htm

------------------------------

Message: 9
Date: Mon, 24 Jan 2011 15:12:23 +0000
From: Sheila Peacock <sheila<at>blacknest.gov.uk>
Subject: [SAC-HELP] Fwd: transfer command
To: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Message-ID: <4D3D96D7.3030902<at>blacknest.gov.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed

To remove the instrument response completely you need "to none" at the end of the
"transfer" command. You might need to use "freqlimits" in your "transfer" command
to limit the low-frequency part of the signal; and I have always found it necessary
to run "rmean", "rtrend" and "taper" on a seismogram before attempting to remove
the instrument response.

Sheila Peacock
Blacknest.


-------- Original Message --------
Subject: [SAC-HELP] transfer command
Date: Mon, 24 Jan 2011 16:52:24 +0200
From: Fatih Sevim <Fatih.Sevim<at>mam.gov.tr>
To: sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>



Hi,

I have a pole zero files to avoid instrument response from signal and I use the command like ? transfer from polezero subtype pz_file ?. Is this the true way to obtain signal which doesn?t include instrument response.

Or I must add ? to vel ? end of the command line ?

Best regards,

Fatih.



------------------------------

_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help


End of sac-help Digest, Vol 64, Issue 2
***************************************





01:51:15 v.22510d55