Thread: problem with sac-macro

Started: 2020-05-08 07:15:19
Last activity: 2020-05-08 09:58:04
Topics: SAC Help
Hossein Shomali
2020-05-08 07:15:19
Hi everyone


I am running sac version "[11/11/2013 (Version 101.6a)]" on 64bit CentOS. When I run the following commands :


SAC> setbb xo 100
SAC> setbb xo ( before ’.’ ’ %xo + 1 ’ )
SAC> sc echo %xo


I then receive a syntax-error as below :


Syntax error: setbb %xo + )1 xo ( .before

What is the correct form of using "setbb xo ( before ’.’ ’ %xo + 1 ’ )" for e.g. increasing "xo" inside a loop within a sac-macro. According to manual it should work, however, it seems the argument dose not match in my OS system. Any comment is appreciated.

Regards
Hossein Shomali










När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy

  • Milton Plasencia
    2020-05-08 09:58:04
    Hi,
    You can try: ( sac 101.6a on Centos7 64 bits)

    sac> setbb x0 100
    sac> setbb x0 (%x0% + 1)
    sac> getbb x0
    x0=101

    HTH,

    milton

    ************************************
    Milton P. PLASENCIA LINARES
    Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS
    Borgo Grotta Gigante 42/C
    (34010) Sgonico - Trieste - Italia
    Tel: +39 040 2140 156 (Udine)
    Tel: +39 040 2140 256 (Trieste)
    Cell.: +39 331 6481 935

    E-mail: mplasencia<at>inogs.it

    Antarctic Seismographic Argentinean Italian Network (ASAIN)
    **************************************


    On Fri, 8 May 2020 at 09:22, Hossein Shomali (via IRIS) <
    sac-help<at>lists.ds.iris.edu> wrote:

    Hi everyone


    I am running sac version "[11/11/2013 (Version 101.6a)]" on 64bit CentOS.
    When I run the following commands :


    *SAC>* setbb xo 100
    *SAC>* setbb xo ( before ’.’ ’ %xo + 1 ’ )
    *SAC>* sc echo %xo


    I then receive a syntax-error as below :


    Syntax error: setbb %xo + )1 xo ( .before

    What is the correct form of using "setbb xo ( before ’.’ ’ %xo + 1 ’ )"
    for e.g. increasing "xo" inside a loop within a sac-macro. According to
    manual it should work, however, it seems the argument dose not match in my
    OS system. Any comment is appreciated.

    Regards
    Hossein Shomali










    När du har kontakt med oss på Uppsala universitet med e-post så innebär
    det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör
    det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/

    E-mailing Uppsala University means that we will process your personal
    data. For more information on how this is performed, please read here:
    http://www.uu.se/en/about-uu/data-protection-policy

    ----------------------
    SAC Help
    Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
    Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


06:27:42 v.22510d55