Thread: Re: sac-help Digest, Vol 104, Issue 1

Started: 2014-06-02 17:50:47
Last activity: 2014-06-02 17:50:47
Topics: SAC Help
Geo .
2014-06-02 17:50:47
Hello,
You have to apply the cut first and then read in the file for CUT to
work (strange eh?).

For example,

CUT ON
CUT 1.661700e+01 5.670325e+04
READ x.sac
WRITE OVER

Januka.


On 1 June 2014 20:00, <sac-help-request<at>iris.washington.edu> wrote:

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. Help ! (Kherchouche radia)
2. Re: Help ! (George Helffrich)


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

Message: 1
Date: Sun, 1 Jun 2014 14:56:37 +0100
From: Kherchouche radia <radia.kherchouche<at>gmail.com>
To: sac-help<at>iris.washington.edu
Subject: [SAC-HELP] Help !
Message-ID:
<CAERZsBOmbPCzrWaq5jf=z5ZahDC1UTeAWa-37=
8QCqTv5UWw3A<at>mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello dear freinds,

My problem is that i have 2 files :

The first one starts at 00.00.09.7617 and finishes at 15.45.17.252 and the
seconde one starts at 15.45.01.2525 and finishes at 00.00.00.0025 (next
day)

I would like to merge this to files, we can see that we have an overlap, so
i cut the end of the first one to correspond to the begining of the first
on but when i cut and i changed the header variable i saw that it was not
changed.

These are the commands used to cut the first file

??SAC> ?
r 3p.sac

?SAC> ?
cut on
??
SAC> cut 1.661700e+01 5.670325e+04
SAC> w 3p.sac
SAC> ch e 5.670325e+04
? (here i changed the e = 5.670325e+04)
SAC> w 3p.sac
?SAC> r ./3p.sac
SAC> lh b e


FILE: ./3p.sac - 1
--------------

b = 1.661700e+01
e = 5.670327e+04 (here it did not changed ! )

Please can you explain me why, because the problem is when i merged them
sac added a sequence of 0 between the 2 files, and this is not normal
because i cut the end of the first file to correspond to the begining of
the seconde one.

Thank you in advance for your help !

Best regards
Radia.
?

--
KHERCHOUCHE Radia
Doctorante en G?ophysique
Laboratoire de G?ophysique
rkherchouche<at>usthb.dz
Universit? des Sciences et de la Technologie Houari Boumediene
BP 32 El Alia ALGER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20140601/4782c174/attachment-0001.html


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

Message: 2
Date: Sun, 1 Jun 2014 16:37:12 +0100
From: George Helffrich <George.Helffrich<at>bristol.ac.uk>
To: Kherchouche radia <radia.kherchouche<at>gmail.com>
Cc: sac-help<at>iris.washington.edu
Subject: Re: [SAC-HELP] Help !
Message-ID: <3C234F55-D874-4D7D-8548-9333D48F20E1<at>bris.ac.uk>
Content-Type: text/plain; charset="utf-8"

Dear Kherchouche Radia -

Use CUTIM. The CUT command only affects what data is read with a
READ command. CUTIM cuts data already in memory.

On 1 Jun 2014, at 14:56, Kherchouche radia wrote:

Hello dear freinds,

My problem is that i have 2 files :

The first one starts at 00.00.09.7617 and finishes at 15.45.17.252 and
the seconde one starts at 15.45.01.2525 and finishes at 00.00.00.0025 (next
day)

I would like to merge this to files, we can see that we have an overlap,
so i cut the end of the first one to correspond to the begining of the
first on but when i cut and i changed the header variable i saw that it
was not changed.

These are the commands used to cut the first file

??SAC> ?r 3p.sac
?SAC> ?cut on
??SAC> cut 1.661700e+01 5.670325e+04
SAC> w 3p.sac
SAC> ch e 5.670325e+04? (here i changed the e = 5.670325e+04)
SAC> w 3p.sac
?SAC> r ./3p.sac
SAC> lh b e


FILE: ./3p.sac - 1
--------------

b = 1.661700e+01
e = 5.670327e+04 (here it did not changed ! )

Please can you explain me why, because the problem is when i merged them
sac added a sequence of 0 between the 2 files, and this is not normal
because i cut the end of the first file to correspond to the begining of
the seconde one.

Thank you in advance for your help !

Best regards
Radia.
?
--
KHERCHOUCHE Radia
Doctorante en G?ophysique
Laboratoire de G?ophysique
rkherchouche<at>usthb.dz
Universit? des Sciences et de la Technologie Houari Boumediene
BP 32 El Alia ALGER
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help



George Helffrich
george.helffrich<at>bris.ac.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20140601/4641124e/attachment-0001.html


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

_______________________________________________
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 104, Issue 1
****************************************




--
Januka Attanayake
Postdoctoral Research Associate
Laboratório de Sismologia
Complexo Interdisciplinar
Departamento de Física
Instituto Superior Técnico
Av. Rovisco Pais, 1
1049-001 Lisboa, Portugal

Honorary Research Associate
University College London

University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/

23:22:03 v.b4412d20