Thread: using sacio.a on Mac OS 10.3.9

Started: 2006-01-25 18:49:11
Last activity: 2006-02-01 16:45:57
Topics: SAC Help
Kris Walker
2006-01-25 18:49:11
Hi folks,

I am trying to compile a program that worked fine on linux with the
older sacio.a.

g++ -Wno-deprecated -O3 -o saccut sac.o saccut.cc
-L/janeway/usr/local/SAC/lib -lsacio
ld: sac.o bad magic number (not a Mach-O file)

I did a little research, but could not figure out quickly what the
problem was. Anyone used the new version of sacio.a that is included
with:

sail.ucsd.edu:/Users/walker/Lib/SAC/SACUTILS/Src>sac
SEISMIC ANALYSIS CODE [03/01/2005 (Version 100.00)]
Copyright 1995 Regents of the University of California

Cheers,
kris

================================================================
Dr. Kristoffer T. Walker http://sail.ucsd.edu/~walker
Green Scholar email: walker<at>ucsd.edu
IGPP, Scripps MC 0225 phone: 858-534-0126
University of California, San Diego fax: 858-534-9873
La Jolla, CA 92093-0225 room: 2201 Revelle Lab
================================================================


  • Kris Walker
    2006-01-25 21:27:45
    Apologies to all for posting this and the previous message. George
    Helffrich kindly pointed out the quite obvious fact that the problem
    was not related to sacio.a, but my own code. Next time I'll more
    carefully review the problem before I post.

    kris

    On Jan 25, 2006, at 10:49 AM, Kris Walker wrote:

    Hi folks,

    I am trying to compile a program that worked fine on linux with the
    older sacio.a.

    g++ -Wno-deprecated -O3 -o saccut sac.o saccut.cc
    -L/janeway/usr/local/SAC/lib -lsacio
    ld: sac.o bad magic number (not a Mach-O file)

    I did a little research, but could not figure out quickly what the
    problem was. Anyone used the new version of sacio.a that is included
    with:

    sail.ucsd.edu:/Users/walker/Lib/SAC/SACUTILS/Src>sac
    SEISMIC ANALYSIS CODE [03/01/2005 (Version 100.00)]
    Copyright 1995 Regents of the University of California

    Cheers,
    kris


  • Matthew R. Agius
    2006-02-01 16:45:57
    Hi Everyone,

    I am trying to find my way with the SAC funciton APK.
    I would like to alter the STA and LTA constants

    The default values as qouted from online manual are:

    DEFAULT VALUES:
    APK C1 0.985 C2 3.0 C3 0.6 C4 0.03 C5 5.0 C6 0.0039 C7 100. C8 -0.1 D5
    2. D8 3. D9 1. I3 3 I4 40 I6 3 VALIDATION ON

    and that :

    3. C3 is the timing constant, used to compute the short term average
    of the characteristic function.

    4. C4 is the timing costant used to compute the long term average
    of the characteristic function.

    My questions is what are the values of c3 and c4, are they minutes or
    seconds?? 0.6 means 60 seconds? and 0.03 is 3 seconds?

    Regards

    Matthew
    M.Sc Studnet
    University of Malta


Page built 03:51:51 | v.b'59d0d2