A forum for SAC users to exchange ideas and ask questions about SAC usage, installation, portability, etc.
This list has moved to https://groups.google.com/a/earthscope.org/g/sac-community.
- Email address
- sac-help@lists.ds.iris.edu
- Type
-
Help
Help lists are for submitting support questions. Anyone can post a question for NSF SAGE (or another team) to answer.
- Moderated by
- IRIS Webmaster
- Related tags
- SAC Software SAC
October
September
August
July
June
May
April
March
February
January
September
August
July
June
May
April
March
February
January
December
November
October
September (1)
August
July
June (4)
May (11)
April (3)
March (5)
February (2)
January (8)
November
October
September (1)
August
July
June (4)
May (11)
April (3)
March (5)
February (2)
January (8)
Active Message Threads for November 2006
Greetings,
I have 3 questions today !
1) I have the following piece of script that I use to mark t0 on the
seismogram
r 1 2 3
ppk --->(I mark t0 using the cursor)
setbb t0 &1, t0 &2, t0 &3
r 1 2 3
ch t0 %t0
w over
say I have 500 seismograms, how do I replace " setbb t0 &1, t0 &2, t0 &3 "
so that I can mark t0 all together?
2) If I have again a bunch of seismograms that I need to seperate according
to distance how do I do that? is there a script that I can use to do this?
3) How ca…
[more]
Replies
-
Re: 3 questions - Michael Thorne - 2006-11-29 23:57:44
-
Re: 3 questions - andreas wessel - 2006-11-30 23:32:25
Greetings,
I have a question regarding naming files. Assume that I have a sac file by
the name
2006.300.33.SDMD.BHZ.R.SAC
say, If I want to extract only the 2006.300.33.SDMD part for naming purposes
after I do certain calculations on it, how do I do it?
would something like this work?
set bb name $1$.$STATION$ ?
w %name.z
It didn't so far for me?
Would like to hear any suggestions from any one out there....
Thank you.
Januka
On 11/14/06, sac-help-request@iris.washington.edu <
sac-help-requ…
[more]
Replies
-
Re: naming files - andreas wessel - 2006-11-24 02:47:04
(no body)
No replies
Hi folks
I am trying to install and run the latest release of SAC on
linux boxes (32 bit), running either Suse 9 or 10, but it doesn' work.
The error messages I get are vey similar to the posting by
Steve below (from a few months ago) which has not been answered.
Who has the solution?
- sac installed in /opt/sac
- environment variables set to
export SACDIR='/opt/sac'
export SACAUX='/opt/sac/aux'
export SACGRAPHICS=xwindows
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":/opt/matlab-6.5.1/e…
[more]
No replies
Hi all
i wanna use cut command for many files( 40~60 files) to cut S-wave(usually 3-5sec time window), for each file they have their own values for cut parameters(depend on S-wave).
i have reviewed the sac manual for cut command. but, there is no such way to select the command cut values indepently for each file..?
its time consuming doing this manaully...!!
there is any systematic way for doing this by writing a macros command file..?
of course i care about the r…
[more]
Replies
-
Re: Cut command - andreas wessel - 2006-11-14 21:44:57
Hi,
I am having trouble with running a small macro that I am trying to write. I
have a bunch of sac files (Z, E, N) in a directory and I want to read event
specific files (i.e. Z,N,E of a given event) together, do a calculation and
give the out put. One I tried to use to read the files is
r $1$..BHZ.R.SAC $2$..BHN.R.SAC $3$..BHE.R.SAC
This wouldn't read the files and right now I am running out of options,
Would anyone have a good solution for this? Further is there a way to
preserve the ori…
[more]
Replies
-
Re: Re: sac-help Digest, Vol 16, Issue 2 - andreas wessel - 2006-11-13 23:00:50
I am plotting XY data in a text (ascii) file usinig readtable (readtable content Y).
The x-value is time (julian day). I want to plot nothing if there is no value (ie, a blank line) for a particular day, but it seems readtable will just skip this and scoot all the values down, so that a gap of 20 days does not show up in the plot.
I've tried setting a dummy value of -99 (e.g.) instead of having a blank value. Is there any way to get SAC to skip a specified dummy value and plot nothing for i…
[more]
No replies
andreas wessel
2006-11-08 17:34:19
On 11/8/06, Fiona Darbyshire <f.darbyshire@gmail.com> wrote:
>
>
> I'm not sure whether "run sh" would work,but one can certainly run
> executables and shell scripts from within a SAC macro. I think what you're
> missing is the dollar sign in front of the commands.
>
Thanks, it works fine with the dollar signs. Maybe they should be added in
the manual.
On 11/8/06, Josh Calkins <jcalkins@email.arizona.edu> wrote:
In the end, I used a shell script that created a macro
> on the fly so I could …
[more]
No replies
Hi list,
Following http://www.iris.edu/manuals/sac/SAC_Manuals/SACMacros.html I am
trying to execute a command from a SAC macro.
Here is what I found in the manual:
RUN program {message}
{inputlines}
ENDRUN
So I am using this minimal example in a macro called test.m:
RUN sh
echo hey
ENDRUN
q
And I get:
SAC> m test.m
sh: RUN: command not found
I am using sac 100.01 for Linux.
Any ideas?
Thanks,
Andreas
No replies
I have a seismogram on which I have
about used up the allowable number
(50?) of plabels. I have not been
able to format a plabel with one or
more pieces of text and one or more
variables.
One such attempt was:
plabel 48 "mediumfreq "$powerm" " " "$mulm"
I have tried many combinations of
" and ' including quoting the entire
expression and/or the pieces inside.
I have not had luck assembling a
string within sac and putting it in
a plabel.
Can anyone kindly advise me how to
have a single…
[more]
No replies
Hi,
If you got the Program as a tgz file you need to unpack it:
$ tar zxvf sac.tgz
Then you can find Instructions in sac/Readme
You don't really need to install it, just set the SACAUX variable and run it
from the folder that came out of the tar.
ciao,
Andreas
On 11/7/06, Hadi Ghofrani <ghofrani@seismo.um.ac.ir> wrote:
> Dear Sir
> I appreciate it very much if you could advise how can I install sac2000 on
> linux 9 (RedHat).
>
> Best regards
> Hadi Ghofrani
>
No replies
Dear Sir
I appreciate it very much if you could advise how can I install sac2000 on linux 9 (RedHat).
Best regards
Hadi Ghofrani
No replies
Hi,
I have tried the function spectrogram (is there an other similar
function sonogram?).
SEISMIC ANALYSIS CODE [03/01/2005 (Version 100.00)]
Copyright 1995 Regents of the University of California
SAC> r APEBHZ.120.03.sac
SAC> spectrogram
Window size: 39 Overlap: 19 FFT size: 128
Warning: ORDER begin reset to 1/2 length of correlation window.
ORDER = 19
Spectrogram dimensions are 512 by 3599 .
X Error of failed request: BadMatch (invalid parameter attributes)
Major opc…
[more]
No replies
Fiona Darbyshire
2006-11-01 17:21:25
- 2006-11-02 20:11:06
I'm having trouble with a Fortran program that I inherited, that reads in
information from a text file, makes some calculations, and writes the
results into an existing SAC blackboard file.
The program appears to compile okay (though I have to use the -m32 option in
the makefile as I've recently moved to a 64-bit Linux platform). When I try
to run it, however, it seems to be successful in reading the blackboard
file, but crashes with a "Segmentation Fault" as soon as it gets to the
first "setb…
[more]
Replies
-
Re: Fwd: Retrieving, setting and writing SAC blackboard variables in Fortran - Brian Savage - 2006-11-02 20:11:06