Thread: Re: sac-help Digest, Vol 18, Issue 4

Started: 2006-12-05 03:57:08
Last activity: 2006-12-05 03:57:08
Topics: SAC Help
Geo .
2006-12-05 03:57:08
Thanks Eva ! will try that and see....

Januka.


On 12/4/06, 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

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: sac-help Digest, Vol 18, Issue 3 (Eva-Maria Rumpfhuber)
2. Plot command (Graphics Display problems..!!) (Talal Merghelani)


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

Message: 1
Date: Sun, 03 Dec 2006 16:16:27 -0600
From: Eva-Maria Rumpfhuber <erumpfhuber<at>ou.edu>
Subject: [SAC-HELP] Re: sac-help Digest, Vol 18, Issue 3
To: sac-help<at>iris.washington.edu
Message-ID: <000a01c71728$ad0e6180$88c40f81@nb32rem>
Content-Type: text/plain; charset=iso-8859-1

Hey Januka,

I usually use a csh-script to sort data, and use sac just to extract the
header information. You can try something like this, the following script
will extract you the header information and store it in a file I called
"rayp.list".

Let me know, if it doesn't work.
Good luck, eva


#/bin/csh
# This is a script to extract header information from a
# sac file.

# Selects all seismograms sorted by events
# (you need to change print $2 to what works for you)
set event = ` ls *.sac | nawk -F. '{print $2}' | sort | uniq `

@ i = 1
@ end = $#event + 1
echo Number of events: $#event

# Loop over the events
while ( $i < $end )
echo Processing event: $event[$i]

#
set file_r = *"."$event[$i]".sac"
echo Input file: $file_r

# start sac and read+write header values
sac <<eof
r $file_r
setbb evid $event[$i]
setbb lat &1,evla
setbb lon &1,evlo
setbb dp &1,evdp
setbb gcdeg &1,gcarc
setbb gckm &1,dist
setbb baz1 &1,baz
setbb rayp &1,user0
getbb TO temp.file names off newline off evid baz1 rayp
quit
eof

cat temp.file >>rayp.list
\rm -f temp.file

@ i = $i + 1
end



----- Original Message -----
From: <sac-help-request<at>iris.washington.edu>
To: <sac-help<at>iris.washington.edu>
Sent: Sunday, December 03, 2006 2:00 PM
Subject: sac-help Digest, Vol 18, Issue 3


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. GCARC (Januka Attanayake)


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

Message: 1
Date: Sat, 2 Dec 2006 22:41:04 -0500
From: "Januka Attanayake" <jattanayake<at>gmail.com>
Subject: [SAC-HELP] GCARC
To: sac-help<at>iris.washington.edu
Message-ID:
<984f6f900612021941r23fd0871xdf3e19756ebbd772<at>mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Greetings,
I am interested in seperating a bunch of seismograms according to
different
GCARC values, for example, bunch up all the seismograms that are
between
100 & 120 together ... so on and so forth. Is it possible to do this in
SAC?
any clues?

Thank you.

Januka.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:

http://www.iris.washington.edu/pipermail/sac-help/attachments/20061202/1d217264/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 18, Issue 3
***************************************




***************************************************************************
Eva-Maria Rumpfhuber

University of Texas at El Paso / University of Oklahoma
810 Sarkeys Energy Center
100 E. Boyd Street
Norman, OK 73019-1009
U.S.A.

phone: +1-405-325-1563
email: erumpfhuber<at>ou.edu
web: http://www.geo.utep.edu/pub/eva

***************************************************************************
Wheresoever you go, go with all your heart.
<Confucius>




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

Message: 2
Date: Sun, 3 Dec 2006 23:02:20 -0800 (PST)
From: Talal Merghelani <talalmg1<at>yahoo.com>
Subject: [SAC-HELP] Plot command (Graphics Display problems..!!)
To: SAC HELP <sac-help<at>iris.washington.edu>
Message-ID: <20061204070220.9409.qmail<at>web36609.mail.mud.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi their

i was trying to use plot command to plot sac file for picking. but,
actually, i don't know what is going on. when i tried the plot command it
seems work for me fine. but, later on its won't work good with error
message.

and same message appear all the time when i use various plot command like
Plot1, plot2....and Plotpk...!! its never plot anything with error
message...!!

terminal log file:

-------------------------------------------------------------------------------------------------------------------------
SAC> r two*.sac
twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac twoCHB012EW.sac
twoCHB012NS.sac twoCHB012UD.sac
SAC> p twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac
ERROR interpreting command: p '
ILLEGAL OPTION: ^
Waiting
Waiting
Waiting
Waiting
Waiting
SAC> p1 twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac
ERROR interpreting command: p1 '
ILLEGAL OPTION: ^
SAC> p2 twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac
ERROR interpreting command: p2 '
ILLEGAL OPTION: ^
SAC> plotpk twoCHB003EW.sac twoCHB003NS.sac twoCHB003UD.sac
ERROR interpreting command: plotpk '
ILLEGAL OPTION: ^
SAC> plotpk twoCHB003EW.sac
ERROR interpreting command: plotpk ' ^
ILLEGAL OPTION: ^
SAC> r twoCHB003EW.sac
SAC> p twoCHB003EW.sac
ERROR interpreting command: p '
ILLEGAL OPTION: ^
SAC> bg df
X connection to melon.sci.ibaraki.ac.jp:0.0 broken (explicit kill or
server shutdown).

SAC> r twoCHB003EW.sac
SAC> p twoCHB003EW.sac
ERROR interpreting command: p '
ILLEGAL OPTION: ^
SAC> p twoCHB003EW.sac
ERROR interpreting command: p '
ILLEGAL OPTION: ^
XIO: fatal IO error 131 (Connection reset by peer) on X server "
melon.sci.ibaraki.ac.jp:0.0"
after 48 requests (45 known processed) with 4 events remaining.


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


i don't understand why is that...? may you are going to say you have to
add some line at your config file .cshrc. and actually, i already did
before..as follow:

setenv SACAUX /export/home/share/sac/aux
setenv SACGRAPHICS xwindows
setenv DISPLAY melon.sci.ibaraki.ac.jp:0.0

i'm working from my current PC running XP pro. and contacting Unix by
ASTEX virtual software. so, i can display Unix terminal and work with Sac at
my PC.

this is make me crazy...!!! HOW DO I FIX THIS...?

waiting for help

regards
Talal



---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.iris.washington.edu/pipermail/sac-help/attachments/20061203/051f72e6/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 18, Issue 4
***************************************




--
"Nothing can start to exist nor can cease to exist, only transformation is
possible"

Januka Attanayake
Center for Integrative Geosciences - Earthquake Seismology
University of Connecticut
Beach Hall U-2045
354,Mansfield Rd;
Storrs.CT 06269

Tel: 1 860 486 0475
http://www.geocities.com/jattanayake
http://earth.uconn.edu/

01:32:29 v.22510d55