[sac-dev] bb-vars as function arguments (v101.0)

luis at sismo.u-strasbg.fr luis at sismo.u-strasbg.fr
Fri Mar 16 00:54:48 PDT 2007


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




More information about the sac-dev mailing list