Thread: MACRO

Started: 2006-06-15 22:16:24
Last activity: 2006-06-16 19:20:18
Topics: SAC Help
feigelso@rohan.sdsu.edu
2006-06-15 22:16:24
Sac-help,

I made a small MACRO file using TextEdit. I put this into my directory
that has saved my practice problems when using SAC (/usr/local/bin). I
saved this small MACRO file as practice. In SAC I typed:

SAC>MACRO practice

It then says that the MACRO file is not found. I tried the SETMACRO
command but was given the same thing. Does anyone know what I'm doing
wrong?

Thanks for your help,

Leah



  • Arthur Snoke
    2006-06-16 05:11:27
    What works for me is to put macros in the same directory as my init file,
    witgh a path given by the format just sent by Brian.

    On Thu, 15 Jun 2006 feigelso<at>rohan.sdsu.edu wrote:

    Sac-help,

    I made a small MACRO file using TextEdit. I put this into my directory
    that has saved my practice problems when using SAC (/usr/local/bin). I
    saved this small MACRO file as practice. In SAC I typed:

    SAC>MACRO practice

    It then says that the MACRO file is not found. I tried the SETMACRO
    command but was given the same thing. Does anyone know what I'm doing
    wrong?

    Thanks for your help,

    Leah


    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


  • Matthew R. Agius
    2006-06-16 19:20:18
    Hi everyone,

    I encountered a problem using MACROs.
    I wrote a macro that takes two arguments: Filename and Filter. When i am
    run SAC2000 the macro works great:

    SAC> MACRO HPfilter file
    sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC filter 0.1
    MACRO-HPfilter-LOADED
    Read
    sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC
    Highpass
    0.1

    When i run the same macro from the shell i encounter the following problem

    [root@localhost functions]# sac2000 < HPfilter file
    sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC filter 0.1
    SEISMIC ANALYSIS CODE [06/12/2003 (Version 00.59.46)]
    Copyright 1995 Regents of the University of California

    SAC> KEYS? Segmentation fault

    Is it possible to pass on key agurments from the system?

    Thanks for your vital help,

    Matthew Agius


Page built 07:30:41 | v.b'ea7a92