[SAC-HELP] MACRO

Matthew R. Agius magi014 at um.edu.mt
Fri Jun 16 03:20:18 PDT 2006


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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20060616/38498604/attachment.html>


More information about the sac-help mailing list