SAC Help

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

Email address
Moderated by
IRIS Webmaster
Related tags
SAC Software SAC

Active Message Threads for July 2008

Geo .
2008-07-28 21:15:16
Greetings, Does anyone know how many files a macro can act on in SAC101.1 per run? I have some 100+ data files and when I try to run my macro it ends up in segmentation fault. When I reduce the number of files to ~20, the same macro runs alright. Thank you ! Januka.
No replies
Ryan P Cary
2008-07-25 21:17:42 - 2008-07-28 17:46:31
Hi, I am attempting to read in sac binary files without using the rsac1 routine in c. My goal is to get the floating point amplitudes into an array, and I am having trouble understanding the correct binary offset in the sac files to get to the amplitudes. The online sac manual states that the "FIRST DATA SECTION" starts at word 158, implying that the following c code should work: FILE * f; float fx; int i; f=fopen("83.0325.22.27.33.RED.4.sac","r"); fseek(f, 54,SEEK_SET);//jump 54 bytes … [more]
Geo .
2008-06-30 02:01:34 - 2008-07-14 20:07:59
Greetings, I want to read in a bunch of SAC files into SAC 101.1 and plot them. As far as I know SAC will read the first 25 files and plot them. However, when I read them continuously the number of files that it plots comes down to something like 4. I believe this is because SAC keeps the files that were read in earlier in its memory. Is it possible to clear SAC memory and read in 25 files (max # of files) and plot them every time? Thank you. Januka.
13:39:42 v.f0c1234e