SAC Help

A forum for SAC users to exchange ideas and ask questions about SAC usage, installation, portability, etc.

Email address
sac-help@lists.ds.iris.edu
Type
Moderated by
IRIS Webmaster
Related tags
SAC Software SAC
March
February
January

Active Message Threads for August 2007

Carmen del FresnoRodríguez-Portugal
2007-08-20 16:29:33
I have been using SAC for about four years under SUN-Solaris without any problem but I have recently had to migrate to work with a Linux-Suse and I installed SAC v101.0. I am having some problems when I try to concatenate blackboard variables. For example, if I run this easy macro: do file wild *bhz setbb base ( BEFORE "bhz" $file ) message "base is %base%" r %base%bhz %base%bhe %base%bhn synch enddo Everything works fine until the 4th line, where I get a segmentation fault. Any ideas? Tha… [more]
No replies
Sudhir Rajaure
2007-08-16 07:12:03
Hello, I can read the files and plot too. In one inversion I have to use the syntax 'r %base%BHZ* %base%BHE* %base%BHN*' . The SAC is new version, which I recently received from llnl.gov/sac. However, I suspect the linux that I currently have in the computer. It is RH Linux Enterprise (AS) version. At home I have Fedora core and it works there. If I could fix this problem it would greatly ease my job. Thank you. Sudhir National Seismological Center Department of Mines and Geology Nepal … [more]
No replies
Sudhir Rajaure
2007-08-15 09:07:09 - 2007-08-16 05:52:40
Dear Sir/Madam I couldn't use the following macro to prepare waveforms for inversion in the search of fault plane solution. r %base%BHZ* %base%BHE* %base%BHN* SAC exist with message "segmentation fault" I think this problem arouse on account of small value of RAM (128 MB). Could you please write the real cause and how to fix it? Regards, Sudhir >From: sac-help-request@iris.washington.edu >Reply-To: sac-help@iris.washington.edu >To: sac-help@iris.washington.edu >Subject: sac-help Diges… [more]
Replies
Sudhir Rajaure
2007-08-15 09:01:05
Dear Sir, I would request you to send the updated version codes of rsac1 and rsac2. Thank yo so much for this email too! Regards, Sudhir >From: sac-help-request@iris.washington.edu >Reply-To: sac-help@iris.washington.edu >To: sac-help@iris.washington.edu >Subject: sac-help Digest, Vol 26, Issue 2 >Date: Fri, 3 Aug 2007 12:01:48 -0700 (PDT) > >Send sac-help mailing list submissions to > sac-help@iris.washington.edu > >To subscribe or unsubscribe via the World Wide Web, visit > http://www.i… [more]
No replies
Brian Savage
2007-08-03 17:40:37
SAC Users A bug had been discovered when using rsac1() from the sacio library. This bug also affects rsac2() as the function logic is essentially the same. Description: If the sac file being read contains more data points than expected an error value is not returned as it should be. A error return value (variable nerr) of -803 should be returned but is this value is set to 0 if no other errors are encountered. The number of data points read in (variable nlen) will be returned a… [more]
No replies
John D. West
2007-08-02 16:26:55 - 2007-08-02 20:40:32
That's great, Phillip! I thought about doing it either way and wasn't sure which was easier. I appreciate your help and the sample programs. -- John Philip Crotwell wrote: > Instead of using sacio.a, you might want to just use a simple struct > to get the header and read it yourself. By reading the just the > header, you get npts and then can do memory allocation yourself. > Attached are a .h file that matches the sac header and a simple C > program to read and write it. It might… [more]
Replies
John D. West
2007-08-02 04:53:00 - 2007-08-02 16:17:48
Hi. I'm coding in C on Linux, using the sacio.a library. How can I tell the length of the data section of a sac file? I thought it was supposed to be in the NPTS header, but if I try to read with an undersize array, NPTS returns the array size, not the data size. Example: I have a file with 25000 data points. Not knowing the size in advance, I size the array as float fData[10000]. Using the syntax on the web site to call rsac1( kname, yarray, &nlen, &beg, &del, &max, &nerr, strlen… [more]
Replies
08:39:35 v.01697673