Dear Mei,
revise your first line as follows,
setbb log '&1,kstnm& .split'
As per the second line with an evaluation, there may be a issue. I tried to
recreate the following example given on p.49 in SAC Primer and came across
a similar problem. Perhaps SAC developers can provide an explanation.
SAC Primer Example
----------------------------
SAC> setbb x 1 ;* set x to 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt 2.000000 is 1.41421
My result on SAC 101.6
--------------------------------
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt (1 + 1) is (sqrt (1 + 1))
Thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 January 2015 at 14:50, <sac-help-request<at>iris.washington.edu> wrote:
revise your first line as follows,
setbb log '&1,kstnm& .split'
As per the second line with an evaluation, there may be a issue. I tried to
recreate the following example given on p.49 in SAC Primer and came across
a similar problem. Perhaps SAC developers can provide an explanation.
SAC Primer Example
----------------------------
SAC> setbb x 1 ;* set x to 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt 2.000000 is 1.41421
My result on SAC 101.6
--------------------------------
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt (1 + 1) is (sqrt (1 + 1))
Thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 January 2015 at 14:50, <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. Re: Fwd: band pass filter problem (Milton Plasencia)
2. Re: Help with version 101.6a (Milton Plasencia)
3. Re: Help with version 101.6a (Mei Xue)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Jan 2015 08:57:55 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Jun Xie <junxie<at>mail.ustc.edu.cn>
Cc: sac-help<at>iris.washington.edu
Subject: Re: [SAC-HELP] Fwd: band pass filter problem
Message-ID: <8974F0F8-5180-457C-8AA2-8C05E6340EBF<at>inogs.it>
Content-Type: text/plain; charset="us-ascii"
Hi,
this is a border effects, the sac command taper is sufficient to avoid it.
HTH,
m.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 06:17, Jun Xie <junxie<at>mail.ustc.edu.cn> wrote:the filtered one is at the bottom, why there is a strange wiggle in the
Hello,
I run band pass filter using command as:
bp co 0.01 0.1 n 4 p 2
the original waveform is the top one (with dt=1.0s, npts=7200),
left edge?<a.jpg>
Jun Xie-------------- next part --------------
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/c35f49c0/attachment-0001.html
------------------------------
Message: 2
Date: Fri, 23 Jan 2015 09:16:01 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Mei Xue <meixue.geo<at>gmail.com>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID: <9D9040EE-0125-46E4-B8AF-3D8CC4A8535E<at>inogs.it>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mai,
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:that a piece of my SAC macro codes didn't work and which worked and still
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
works well in the older version of SAC (101.3b for X86-64). The piece of
codes and their corresponding output the two versions of SAC are as the
following:
101.3b version:-------------- next part --------------
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/15fcd2ab/attachment-0001.html
------------------------------
Message: 3
Date: Fri, 23 Jan 2015 22:50:16 +0800
From: Mei Xue <meixue.geo<at>gmail.com>
To: Milton Plasencia <mplasencia<at>inogs.it>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID:
<CAL-DuhNSDsUL5DM0rY=Jjvb7pX9p9kg0DyRSPLRCbPBeRn=
2TQ<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Dear Milton,
Thank you very much for your time!
I tried your way and it didn't produce the expected results. Though SAC
recognizes the sign of parenthesis now, it doesn't calculate or perform the
function I want it does, such as add two numbers or concatennate two
strings. While older version of SAC can do these jobs.
Mei
2015-01-23 16:16 GMT+08:00 Milton Plasencia <mplasencia<at>inogs.it>:
Hi Mai,-------------- next part --------------
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
that a piece of my SAC macro codes didn't work and which worked and still
works well in the older version of SAC (101.3b for X86-64). The piece of
codes and their corresponding output the two versions of SAC are as the
following:
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/ee5c1207/attachment.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 111, Issue 9
****************************************
-
seems that the aritmehic not works…
Milton P. Plasencia Linares
mpplasencia<at>gmail.com
On Jan 23, 2015, at 17:22, Januka Attanayake <jattanayake<at>gmail.com> wrote:
Dear Mei,
revise your first line as follows,
setbb log '&1,kstnm& .split'
As per the second line with an evaluation, there may be a issue. I tried to recreate the following example given on p.49 in SAC Primer and came across a similar problem. Perhaps SAC developers can provide an explanation.
SAC Primer Example
----------------------------
SAC> setbb x 1 ;* set x to 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt 2.000000 is 1.41421
My result on SAC 101.6
--------------------------------
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt (1 + 1) is (sqrt (1 + 1))
Thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt <januka.attanayake<at>ist.utl.pt>
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 January 2015 at 14:50, <sac-help-request<at>iris.washington.edu <sac-help-request<at>iris.washington.edu>> wrote:
Send sac-help mailing list submissions to
sac-help<at>iris.washington.edu <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 <sac-help-request<at>iris.washington.edu>
You can reach the person managing the list at
sac-help-owner<at>iris.washington.edu <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. Re: Fwd: band pass filter problem (Milton Plasencia)
2. Re: Help with version 101.6a (Milton Plasencia)
3. Re: Help with version 101.6a (Mei Xue)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Jan 2015 08:57:55 +0100
From: Milton Plasencia <mplasencia<at>inogs.it <mplasencia<at>inogs.it>>
To: Jun Xie <junxie<at>mail.ustc.edu.cn <junxie<at>mail.ustc.edu.cn>>
Cc: sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Fwd: band pass filter problem
Message-ID: <8974F0F8-5180-457C-8AA2-8C05E6340EBF<at>inogs.it <8974F0F8-5180-457C-8AA2-8C05E6340EBF<at>inogs.it>>
Content-Type: text/plain; charset="us-ascii"
Hi,
this is a border effects, the sac command taper is sufficient to avoid it.
HTH,
m.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 <tel:%2B39%20040%202140%20141> (Udine)
Tel: +39 040 2140 256 <tel:%2B39%20040%202140%20256> (Trieste)
Cel.: +39 331 6481 935 <tel:%2B39%20331%206481%20935>
E-mail: mplasencia<at>inogs.it <mplasencia<at>inogs.it>
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 06:17, Jun Xie <junxie<at>mail.ustc.edu.cn <junxie<at>mail.ustc.edu.cn>> wrote:
-------------- next part --------------
Hello,
I run band pass filter using command as:
bp co 0.01 0.1 n 4 p 2
the original waveform is the top one (with dt=1.0s, npts=7200), the filtered one is at the bottom, why there is a strange wiggle in the left edge?<a.jpg>
Jun Xie
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/c35f49c0/attachment-0001.html>
------------------------------
Message: 2
Date: Fri, 23 Jan 2015 09:16:01 +0100
From: Milton Plasencia <mplasencia<at>inogs.it <mplasencia<at>inogs.it>>
To: Mei Xue <meixue.geo<at>gmail.com <meixue.geo<at>gmail.com>>
Cc: "sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>" <sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID: <9D9040EE-0125-46E4-B8AF-3D8CC4A8535E<at>inogs.it <9D9040EE-0125-46E4-B8AF-3D8CC4A8535E<at>inogs.it>>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mai,
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it <mplasencia<at>inogs.it>
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com <meixue.geo<at>gmail.com>> wrote:
-------------- next part --------------
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found that a piece of my SAC macro codes didn't work and which worked and still works well in the older version of SAC (101.3b for X86-64). The piece of codes and their corresponding output the two versions of SAC are as the following:
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/15fcd2ab/attachment-0001.html>
------------------------------
Message: 3
Date: Fri, 23 Jan 2015 22:50:16 +0800
From: Mei Xue <meixue.geo<at>gmail.com <meixue.geo<at>gmail.com>>
To: Milton Plasencia <mplasencia<at>inogs.it <mplasencia<at>inogs.it>>
Cc: "sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>" <sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID:
<CAL-DuhNSDsUL5DM0rY=Jjvb7pX9p9kg0DyRSPLRCbPBeRn=2TQ<at>mail.gmail.com <2TQ<at>mail.gmail.com>>
Content-Type: text/plain; charset="iso-8859-1"
Dear Milton,
Thank you very much for your time!
I tried your way and it didn't produce the expected results. Though SAC
recognizes the sign of parenthesis now, it doesn't calculate or perform the
function I want it does, such as add two numbers or concatennate two
strings. While older version of SAC can do these jobs.
Mei
2015-01-23 16:16 GMT+08:00 Milton Plasencia <mplasencia<at>inogs.it <mplasencia<at>inogs.it>>:
Hi Mai,
-------------- next part --------------
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 <tel:%2B39%20040%202140%20141> (Udine)
Tel: +39 040 2140 256 <tel:%2B39%20040%202140%20256> (Trieste)
Cel.: +39 331 6481 935 <tel:%2B39%20331%206481%20935>
E-mail: mplasencia<at>inogs.it <mplasencia<at>inogs.it>
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com <meixue.geo<at>gmail.com>> wrote:
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
that a piece of my SAC macro codes didn't work and which worked and still
works well in the older version of SAC (101.3b for X86-64). The piece of
codes and their corresponding output the two versions of SAC are as the
following:
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/ee5c1207/attachment.html>
------------------------------
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu <sac-help<at>iris.washington.edu>
http://www.iris.washington.edu/mailman/listinfo/sac-help
End of sac-help Digest, Vol 111, Issue 9
****************************************
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
-
Dear Januka,
Thank you very much for your help and reproducing a similar problem with
SAC 101.6a.
The first line works now in your way "setbb log '&1,kstnm& .split'".
And for the second line with an evaluation, it seems be a problem with SAC
101.6a.
Hope SAC developers can provide a solution.
Best wishes,
Mei
2015-01-24 0:22 GMT+08:00 Januka Attanayake <jattanayake<at>gmail.com>:
Dear Mei,
--
revise your first line as follows,
setbb log '&1,kstnm& .split'
As per the second line with an evaluation, there may be a issue. I tried
to recreate the following example given on p.49 in SAC Primer and came
across a similar problem. Perhaps SAC developers can provide an explanation.
SAC Primer Example
----------------------------
SAC> setbb x 1 ;* set x to 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt 2.000000 is 1.41421
My result on SAC 101.6
--------------------------------
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt (1 + 1) is (sqrt (1 + 1))
Thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 January 2015 at 14:50, <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. Re: Fwd: band pass filter problem (Milton Plasencia)
2. Re: Help with version 101.6a (Milton Plasencia)
3. Re: Help with version 101.6a (Mei Xue)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Jan 2015 08:57:55 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Jun Xie <junxie<at>mail.ustc.edu.cn>
Cc: sac-help<at>iris.washington.edu
Subject: Re: [SAC-HELP] Fwd: band pass filter problem
Message-ID: <8974F0F8-5180-457C-8AA2-8C05E6340EBF<at>inogs.it>
Content-Type: text/plain; charset="us-ascii"
Hi,
this is a border effects, the sac command taper is sufficient to avoid it.
HTH,
m.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 06:17, Jun Xie <junxie<at>mail.ustc.edu.cn> wrote:
npts=7200), the filtered one is at the bottom, why there is a strange
Hello,
I run band pass filter using command as:
bp co 0.01 0.1 n 4 p 2
the original waveform is the top one (with dt=1.0s,
wiggle in the left edge?<a.jpg>
Jun Xie
-------------- next part --------------
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/c35f49c0/attachment-0001.html
------------------------------
Message: 2
Date: Fri, 23 Jan 2015 09:16:01 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Mei Xue <meixue.geo<at>gmail.com>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID: <9D9040EE-0125-46E4-B8AF-3D8CC4A8535E<at>inogs.it>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mai,
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
that a piece of my SAC macro codes didn't work and which worked and still
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
works well in the older version of SAC (101.3b for X86-64). The piece of
codes and their corresponding output the two versions of SAC are as the
following:
101.3b version:
-------------- next part --------------
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/15fcd2ab/attachment-0001.html
------------------------------
Message: 3
Date: Fri, 23 Jan 2015 22:50:16 +0800
From: Mei Xue <meixue.geo<at>gmail.com>
To: Milton Plasencia <mplasencia<at>inogs.it>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID:
<CAL-DuhNSDsUL5DM0rY=Jjvb7pX9p9kg0DyRSPLRCbPBeRn=
2TQ<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Dear Milton,
Thank you very much for your time!
I tried your way and it didn't produce the expected results. Though SAC
recognizes the sign of parenthesis now, it doesn't calculate or perform
the
function I want it does, such as add two numbers or concatennate two
strings. While older version of SAC can do these jobs.
Mei
2015-01-23 16:16 GMT+08:00 Milton Plasencia <mplasencia<at>inogs.it>:
Hi Mai,
still
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
that a piece of my SAC macro codes didn't work and which worked and
works well in the older version of SAC (101.3b for X86-64). The piece
of
codes and their corresponding output the two versions of SAC are as the
-------------- next part --------------
following:
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/ee5c1207/attachment.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 111, Issue 9
****************************************
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
薛梅
天然地震与地球动力学组
海洋地质国家重点实验室
海洋与地球科学学院
同济大学
中国上海市杨浦区四平路1239号,200092
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
-
Dear Januka,
Is this ok to use without the quotes ?
SAC> setbb xc 1.2
SAC> setbb yc 3.4
SAC> sc echo l %xc% ( %yc% + 0.01)
l 1.2 3.41
SAC> sc echo l %xc% ( %yc% + 0.01) >> tmp
SAC> cat tmp
l 1.2 3.41
SAC>
The quotes are used to identify strings, and no math within ( ) is executed within
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is "(sqrt(%x% + %x%))
sqrt (1 + 1) is
1.41421
SAC> message "sqrt (%x% + %x%) is (sqrt(%x% + %x%))"
sqrt (1 + 1) is (sqrt(1 + 1))
SAC>
If anything, the Help pages should be changed to match the behavior, or we need to revert these changes.
Brian
On Jan 23, 2015, at 10:32 PM, Mei Xue <meixue.geo<at>gmail.com> wrote:
Dear Januka,
Thank you very much for your help and reproducing a similar problem with SAC 101.6a.
The first line works now in your way "setbb log '&1,kstnm& .split'".
And for the second line with an evaluation, it seems be a problem with SAC 101.6a.
Hope SAC developers can provide a solution.
Best wishes,
Mei
2015-01-24 0:22 GMT+08:00 Januka Attanayake <jattanayake<at>gmail.com>:
Dear Mei,
revise your first line as follows,
setbb log '&1,kstnm& .split'
As per the second line with an evaluation, there may be a issue. I tried to recreate the following example given on p.49 in SAC Primer and came across a similar problem. Perhaps SAC developers can provide an explanation.
SAC Primer Example
----------------------------
SAC> setbb x 1 ;* set x to 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt 2.000000 is 1.41421
My result on SAC 101.6
--------------------------------
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt (1 + 1) is (sqrt (1 + 1))
Thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 January 2015 at 14:50, <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. Re: Fwd: band pass filter problem (Milton Plasencia)
2. Re: Help with version 101.6a (Milton Plasencia)
3. Re: Help with version 101.6a (Mei Xue)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Jan 2015 08:57:55 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Jun Xie <junxie<at>mail.ustc.edu.cn>
Cc: sac-help<at>iris.washington.edu
Subject: Re: [SAC-HELP] Fwd: band pass filter problem
Message-ID: <8974F0F8-5180-457C-8AA2-8C05E6340EBF<at>inogs.it>
Content-Type: text/plain; charset="us-ascii"
Hi,
this is a border effects, the sac command taper is sufficient to avoid it.
HTH,
m.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 06:17, Jun Xie <junxie<at>mail.ustc.edu.cn> wrote:
-------------- next part --------------
Hello,
I run band pass filter using command as:
bp co 0.01 0.1 n 4 p 2
the original waveform is the top one (with dt=1.0s, npts=7200), the filtered one is at the bottom, why there is a strange wiggle in the left edge?<a.jpg>
Jun Xie
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/c35f49c0/attachment-0001.html
------------------------------
Message: 2
Date: Fri, 23 Jan 2015 09:16:01 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Mei Xue <meixue.geo<at>gmail.com>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID: <9D9040EE-0125-46E4-B8AF-3D8CC4A8535E<at>inogs.it>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mai,
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
-------------- next part --------------
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found that a piece of my SAC macro codes didn't work and which worked and still works well in the older version of SAC (101.3b for X86-64). The piece of codes and their corresponding output the two versions of SAC are as the following:
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/15fcd2ab/attachment-0001.html
------------------------------
Message: 3
Date: Fri, 23 Jan 2015 22:50:16 +0800
From: Mei Xue <meixue.geo<at>gmail.com>
To: Milton Plasencia <mplasencia<at>inogs.it>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID:
<CAL-DuhNSDsUL5DM0rY=Jjvb7pX9p9kg0DyRSPLRCbPBeRn=2TQ<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Dear Milton,
Thank you very much for your time!
I tried your way and it didn't produce the expected results. Though SAC
recognizes the sign of parenthesis now, it doesn't calculate or perform the
function I want it does, such as add two numbers or concatennate two
strings. While older version of SAC can do these jobs.
Mei
2015-01-23 16:16 GMT+08:00 Milton Plasencia <mplasencia<at>inogs.it>:
Hi Mai,
-------------- next part --------------
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
that a piece of my SAC macro codes didn't work and which worked and still
works well in the older version of SAC (101.3b for X86-64). The piece of
codes and their corresponding output the two versions of SAC are as the
following:
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/ee5c1207/attachment.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 111, Issue 9
****************************************
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
--
薛梅
天然地震与地球动力学组
海洋地质国家重点实验室
海洋与地球科学学院
同济大学
中国上海市杨浦区四平路1239号,200092
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
-
Hi Brian,
Yes! Evaluations work with the syntax you just suggested.
Many thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 28 January 2015 at 11:27, Brian Savage <savage<at>uri.edu> wrote:
Dear Januka,
Is this ok to use without the quotes ?
SAC> setbb xc 1.2
SAC> setbb yc 3.4
SAC> sc echo l %xc% ( %yc% + 0.01)
l 1.2 3.41
SAC> sc echo l %xc% ( %yc% + 0.01) >> tmp
SAC> cat tmp
l 1.2 3.41
SAC>
The quotes are used to identify strings, and no math within ( ) is
executed within
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is "(sqrt(%x% + %x%))
sqrt (1 + 1) is
1.41421
SAC> message "sqrt (%x% + %x%) is (sqrt(%x% + %x%))"
sqrt (1 + 1) is (sqrt(1 + 1))
SAC>
If anything, the Help pages should be changed to match the behavior, or we
need to revert these changes.
Brian
On Jan 23, 2015, at 10:32 PM, Mei Xue <meixue.geo<at>gmail.com> wrote:
Dear Januka,
Thank you very much for your help and reproducing a similar problem with
SAC 101.6a.
The first line works now in your way "setbb log '&1,kstnm& .split'".
And for the second line with an evaluation, it seems be a problem with SAC
101.6a.
Hope SAC developers can provide a solution.
Best wishes,
Mei
2015-01-24 0:22 GMT+08:00 Januka Attanayake <jattanayake<at>gmail.com>:
Dear Mei,
--
revise your first line as follows,
setbb log '&1,kstnm& .split'
As per the second line with an evaluation, there may be a issue. I tried
to recreate the following example given on p.49 in SAC Primer and came
across a similar problem. Perhaps SAC developers can provide an explanation.
SAC Primer Example
----------------------------
SAC> setbb x 1 ;* set x to 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt 2.000000 is 1.41421
My result on SAC 101.6
--------------------------------
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt (1 + 1) is (sqrt (1 + 1))
Thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 January 2015 at 14:50, <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. Re: Fwd: band pass filter problem (Milton Plasencia)
2. Re: Help with version 101.6a (Milton Plasencia)
3. Re: Help with version 101.6a (Mei Xue)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Jan 2015 08:57:55 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Jun Xie <junxie<at>mail.ustc.edu.cn>
Cc: sac-help<at>iris.washington.edu
Subject: Re: [SAC-HELP] Fwd: band pass filter problem
Message-ID: <8974F0F8-5180-457C-8AA2-8C05E6340EBF<at>inogs.it>
Content-Type: text/plain; charset="us-ascii"
Hi,
this is a border effects, the sac command taper is sufficient to avoid
it.
HTH,
m.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 06:17, Jun Xie <junxie<at>mail.ustc.edu.cn> wrote:
npts=7200), the filtered one is at the bottom, why there is a strange
Hello,
I run band pass filter using command as:
bp co 0.01 0.1 n 4 p 2
the original waveform is the top one (with dt=1.0s,
wiggle in the left edge?<a.jpg>
Jun Xie
-------------- next part --------------
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/c35f49c0/attachment-0001.html
------------------------------
Message: 2
Date: Fri, 23 Jan 2015 09:16:01 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Mei Xue <meixue.geo<at>gmail.com>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID: <9D9040EE-0125-46E4-B8AF-3D8CC4A8535E<at>inogs.it>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mai,
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
that a piece of my SAC macro codes didn't work and which worked and still
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
works well in the older version of SAC (101.3b for X86-64). The piece of
codes and their corresponding output the two versions of SAC are as the
following:
101.3b version:
-------------- next part --------------
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/15fcd2ab/attachment-0001.html
------------------------------
Message: 3
Date: Fri, 23 Jan 2015 22:50:16 +0800
From: Mei Xue <meixue.geo<at>gmail.com>
To: Milton Plasencia <mplasencia<at>inogs.it>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID:
<CAL-DuhNSDsUL5DM0rY=Jjvb7pX9p9kg0DyRSPLRCbPBeRn=
2TQ<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Dear Milton,
Thank you very much for your time!
I tried your way and it didn't produce the expected results. Though SAC
recognizes the sign of parenthesis now, it doesn't calculate or perform
the
function I want it does, such as add two numbers or concatennate two
strings. While older version of SAC can do these jobs.
Mei
2015-01-23 16:16 GMT+08:00 Milton Plasencia <mplasencia<at>inogs.it>:
Hi Mai,
still
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
that a piece of my SAC macro codes didn't work and which worked and
works well in the older version of SAC (101.3b for X86-64). The piece
of
codes and their corresponding output the two versions of SAC are as the
-------------- next part --------------
following:
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/ee5c1207/attachment.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 111, Issue 9
****************************************
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
薛梅
天然地震与地球动力学组
海洋地质国家重点实验室
海洋与地球科学学院
同济大学
中国上海市杨浦区四平路1239号,200092
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
-
Thanks Brian and Januka help me out! The evaluations work now on SAC 101.6a
without the quotes!
Mei
2015-01-28 19:51 GMT+08:00 Januka Attanayake <jattanayake<at>gmail.com>:
Hi Brian,
--
Yes! Evaluations work with the syntax you just suggested.
Many thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 28 January 2015 at 11:27, Brian Savage <savage<at>uri.edu> wrote:
Dear Januka,
Is this ok to use without the quotes ?
SAC> setbb xc 1.2
SAC> setbb yc 3.4
SAC> sc echo l %xc% ( %yc% + 0.01)
l 1.2 3.41
SAC> sc echo l %xc% ( %yc% + 0.01) >> tmp
SAC> cat tmp
l 1.2 3.41
SAC>
The quotes are used to identify strings, and no math within ( ) is
executed within
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is "(sqrt(%x% + %x%))
sqrt (1 + 1) is
1.41421
SAC> message "sqrt (%x% + %x%) is (sqrt(%x% + %x%))"
sqrt (1 + 1) is (sqrt(1 + 1))
SAC>
If anything, the Help pages should be changed to match the behavior, or
we need to revert these changes.
Brian
On Jan 23, 2015, at 10:32 PM, Mei Xue <meixue.geo<at>gmail.com> wrote:
Dear Januka,
Thank you very much for your help and reproducing a similar problem with
SAC 101.6a.
The first line works now in your way "setbb log '&1,kstnm& .split'".
And for the second line with an evaluation, it seems be a problem with
SAC 101.6a.
Hope SAC developers can provide a solution.
Best wishes,
Mei
2015-01-24 0:22 GMT+08:00 Januka Attanayake <jattanayake<at>gmail.com>:
Dear Mei,
--
revise your first line as follows,
setbb log '&1,kstnm& .split'
As per the second line with an evaluation, there may be a issue. I tried
to recreate the following example given on p.49 in SAC Primer and came
across a similar problem. Perhaps SAC developers can provide an explanation.
SAC Primer Example
----------------------------
SAC> setbb x 1 ;* set x to 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt 2.000000 is 1.41421
My result on SAC 101.6
--------------------------------
SAC> setbb x 1
SAC> message "sqrt (%x% + %x%) is (sqrt (%x% + %x%))"
sqrt (1 + 1) is (sqrt (1 + 1))
Thanks !
Januka.
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
London, UK
University email: januka.attanayake<at>ist.utl.pt
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 January 2015 at 14:50, <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. Re: Fwd: band pass filter problem (Milton Plasencia)
2. Re: Help with version 101.6a (Milton Plasencia)
3. Re: Help with version 101.6a (Mei Xue)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Jan 2015 08:57:55 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Jun Xie <junxie<at>mail.ustc.edu.cn>
Cc: sac-help<at>iris.washington.edu
Subject: Re: [SAC-HELP] Fwd: band pass filter problem
Message-ID: <8974F0F8-5180-457C-8AA2-8C05E6340EBF<at>inogs.it>
Content-Type: text/plain; charset="us-ascii"
Hi,
this is a border effects, the sac command taper is sufficient to avoid
it.
HTH,
m.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 06:17, Jun Xie <junxie<at>mail.ustc.edu.cn> wrote:
npts=7200), the filtered one is at the bottom, why there is a strange
Hello,
I run band pass filter using command as:
bp co 0.01 0.1 n 4 p 2
the original waveform is the top one (with dt=1.0s,
wiggle in the left edge?<a.jpg>
Jun Xie
-------------- next part --------------
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/c35f49c0/attachment-0001.html
------------------------------
Message: 2
Date: Fri, 23 Jan 2015 09:16:01 +0100
From: Milton Plasencia <mplasencia<at>inogs.it>
To: Mei Xue <meixue.geo<at>gmail.com>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID: <9D9040EE-0125-46E4-B8AF-3D8CC4A8535E<at>inogs.it>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mai,
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
found that a piece of my SAC macro codes didn't work and which worked and
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I
still works well in the older version of SAC (101.3b for X86-64). The
piece of codes and their corresponding output the two versions of SAC are
as the following:
101.3b version:
-------------- next part --------------
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/15fcd2ab/attachment-0001.html
------------------------------
Message: 3
Date: Fri, 23 Jan 2015 22:50:16 +0800
From: Mei Xue <meixue.geo<at>gmail.com>
To: Milton Plasencia <mplasencia<at>inogs.it>
Cc: "sac-help<at>iris.washington.edu" <sac-help<at>iris.washington.edu>
Subject: Re: [SAC-HELP] Help with version 101.6a
Message-ID:
<CAL-DuhNSDsUL5DM0rY=Jjvb7pX9p9kg0DyRSPLRCbPBeRn=
2TQ<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Dear Milton,
Thank you very much for your time!
I tried your way and it didn't produce the expected results. Though SAC
recognizes the sign of parenthesis now, it doesn't calculate or perform
the
function I want it does, such as add two numbers or concatennate two
strings. While older version of SAC can do these jobs.
Mei
2015-01-23 16:16 GMT+08:00 Milton Plasencia <mplasencia<at>inogs.it>:
Hi Mai,
still
if you scape the (,
write
sc echo "l %xc% \( %yc% + 0.01 \ ) " >> split.pcf
HTH,
M.
* * * * * * * * * * * * * * * * * * * * * * *
Milton P. PLASENCIA LINARES
Centro di Ricerche Sismologiche (CRS)
OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 141 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cel.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
ASAIN (Antarctic Seismographic Argentinean Italian Network)
*********************************
On Jan 23, 2015, at 04:20, Mei Xue <meixue.geo<at>gmail.com> wrote:
I am wondering if anyone can help me with the following problem:
After I installed the latest version of SAC (101.6 for X86-64) I found
that a piece of my SAC macro codes didn't work and which worked and
works well in the older version of SAC (101.3b for X86-64). The
piece of
codes and their corresponding output the two versions of SAC are as
the
following:
-------------- next part --------------
101.3b version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
HY16.split
101.6a version:
setbb log " ( concatennate &1,kstnm& .split ) "
message "%log%"
( concatennate HY16 .split )
Similarly,
101.3b version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following line into split.pcf:
l 0.53125 0.6611112
Whereas for 101.6a version:
sc echo "l %xc% ( %yc% + 0.01)" >> split.pcf
OUTPUT the following error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo l 0.53125 ( 0.651111 + 0.01) >> split.pcf '
Thanks.
Mei
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
An HTML attachment was scrubbed...
URL: <
http://www.iris.washington.edu/pipermail/sac-help/attachments/20150123/ee5c1207/attachment.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 111, Issue 9
****************************************
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
薛梅
天然地震与地球动力学组
海洋地质国家重点实验室
海洋与地球科学学院
同济大学
中国上海市杨浦区四平路1239号,200092
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
薛梅
天然地震与地球动力学组
海洋地质国家重点实验室
海洋与地球科学学院
同济大学
中国上海市杨浦区四平路1239号,200092
Mei Xue
Global Seismology & Geodynamics
State Key Laboratory of Marine Geology
School of Ocean & Earth Science
Tongji University
Siping Rd, Yangpu District, Shanghai, China, 200092
-
-
-