[SAC-HELP] macro error in ch origin time

darko.dudjak at rgn.hr darko.dudjak at rgn.hr
Wed Apr 20 05:21:41 PDT 2011


Hi all,

I made a macro in which I want to change a header value for origin time:

READ $FILES
READ $ORIGIN_TIME
CH O GMT 2006 136 $ORIGIN_TIME
WRITE $FILES

However, if there is a 0 (zero) in a sec input, I get next error

SAC> macro tscf
FILES?  13_16052006.1.sac
ORIGIN_TIME?  15 41 01 79
ERROR interpreting command:  READ 15 41 01 79 
ILLEGAL OPTION:                                           ^
ERROR 1016: Terminating execution of macro

If I leave a zero out, error still occurs. If values for secs are i.e.
40 or 50, macro goes through just fine. What should I do for sac to
apply entered time?

Thank you,

Darko Dudjak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20110420/497e10ed/attachment.html>


More information about the sac-help mailing list