Thread: bb-vars as function arguments (v101.0)

Started: 2007-03-16 15:54:48
Last activity: 2007-03-16 17:16:59
Topics: SAC Developers
Luis Rivera
2007-03-16 15:54:48

Hi,

After having problems running some of my scripts
with the new version of SAC (v 101.0),
I think the origin of my problems is the following:

When using a blackboard variables as an argument
in a sac function, all the subsequent arguments
get lost.

Could you confirm that?

Thanks,

Luis

PS. Some examples are given below

1)
**********************

SAC> echo on
echo on
SAC> setbb a 1
setbb a 1
SAC> evaluate to b %a * 2
evaluate to b %a * 2
==> evaluate to b 1 <-----------
SAC>

______

2)
***********************

SAC> echo on
SAC> setbb a 1
setbb a 1
SAC> setbb b 2
setbb b 2
SAC> getbb
getbb
SACERROR = FALSE
NUMERROR = 0
SACNFILES = 0
A = 1
B = 2
SAC> xlim %a %b
xlim %a %b
==> xlim 1 <---------
SAC>

_______________

3)

SAC> echo on
echo on
SAC> setbb a .1
setbb a .1
SAC> fg impu
fg impu
SAC> lp bu co %a n 3 p 2
lp bu co %a n 3 p 2
==> lp bu co .1 <--------
SAC>

*********************


______________________________
Luis Rivera
EOST - IPGS
Universite Louis Pasteur
5, rue Rene Descartes
F67084 Strasbourg cedex

Tel. +33 (0) 390 240 047
Fax. +33 (0) 390 240 125

e-mail: luis<at>sismo.u-strasbg.fr



  • Brian Savage
    2007-03-16 17:16:59
    Luis,

    I can confirm this on my system(s) as well.
    The examples you show work for previous versions
    but not for the new version.

    I will look into it.

    Cheers
    Brian Savage
    savage<at>uri.edu

    On Mar 16, 2007, at 3:54 AM, <luis<at>sismo.u-strasbg.fr> <luis<at>sismo.u-
    strasbg.fr> wrote:


    Hi,

    After having problems running some of my scripts
    with the new version of SAC (v 101.0),
    I think the origin of my problems is the following:

    When using a blackboard variables as an argument
    in a sac function, all the subsequent arguments
    get lost.

    Could you confirm that?

    Thanks,

    Luis

    PS. Some examples are given below

    1)
    **********************

    SAC> echo on
    echo on
    SAC> setbb a 1
    setbb a 1
    SAC> evaluate to b %a * 2
    evaluate to b %a * 2
    ==> evaluate to b 1 <-----------
    SAC>

    ______

    2)
    ***********************

    SAC> echo on
    SAC> setbb a 1
    setbb a 1
    SAC> setbb b 2
    setbb b 2
    SAC> getbb
    getbb
    SACERROR = FALSE
    NUMERROR = 0
    SACNFILES = 0
    A = 1
    B = 2
    SAC> xlim %a %b
    xlim %a %b
    ==> xlim 1 <---------
    SAC>

    _______________

    3)

    SAC> echo on
    echo on
    SAC> setbb a .1
    setbb a .1
    SAC> fg impu
    fg impu
    SAC> lp bu co %a n 3 p 2
    lp bu co %a n 3 p 2
    ==> lp bu co .1 <--------
    SAC>

    *********************


    ______________________________
    Luis Rivera
    EOST - IPGS
    Universite Louis Pasteur
    5, rue Rene Descartes
    F67084 Strasbourg cedex

    Tel. +33 (0) 390 240 047
    Fax. +33 (0) 390 240 125

    e-mail: luis<at>sismo.u-strasbg.fr


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


16:04:50 v.01697673