Thread: Need-help for error in mtrf macro

Started: 2018-05-31 18:05:28
Last activity: 2022-06-09 19:10:08
Topics: SAC Help
Gowthami Bandlamudi
2018-05-31 18:05:28
Dear sac experts
I need some help.I have three components r,t,z and sac macro mtrf file.
When I am running mtrf in sac following error is coming.

SAC> m mtrf file efam.syn comps r t z phase P plot yes pick maybe window
12x 3.0 tables ak125 debug no
efam.syn.r efam.syn.t efam.syn.z
Unexpected characters after IF: if %rt% eq tr
ERROR 2703: Can't evaluate logical expression:
ERROR 1016: Terminating execution of macro mtrf
Command line is: if %rt% eq tr

I got below solution form sac but i am new to this, so unable to understand
the following solution.

SAC is reporting a syntax error in the mtrf macro.

It appears that the offending line of the macro included in your message is
different from the text available from other distributed sources. I suggest
that you go back to the original source and compare it to your own to see
where the problem lies and how to fix it.

So please help me in this issue.
Thank you.

Research scholar
Dept of earth sciences
Indian Institute of Technology Bombay.

  • Kyle Brill
    2022-06-09 19:10:08
    The response from Fiona Darbyshire on 2021-07-05 09:57:59 to David Schlaphorst's thread titled "Thread: Unexpected character open bracket" on 2021-07-02 15:37:01 addresses this issue.

    As this thread is the top hit when googling "sac mtrf help" and the thread answering the question does not appear, I felt it would be useful to add this reply for others searching for answers.
12:04:01 v.ad6b513c