[SAC-HELP] Do Loop Bug

Bob Hancock daedalus at qwest.net
Wed Oct 8 22:51:12 PDT 2008


I copied the Do Loop macro for particle motion plots from the Do Loop
Examples contained in the MACRO Section of the SAC Manual, and have found a
problem ­ See Macro followed by explanation below:

READ ABC 
SETBB TIME1 0 
DO TIME2 FROM 2 TO 10 BY 2
XLIM %TIME1 $TIME2 
TITLE 'Particle Motion from %TIME1 to $TIME2$'
PLOTPM 
SETBB TIME1 $TIME2 
ENDDO

There are four variables in the macro

Time1 ­ The starting value for XLIM
Time2 ­ The ending value for XLIM
Upper limit of macro processing
Incremental value to increase or decrease the values of both Time1 and Time2
for the next increment.

As long as the incremental value is equal to or greater than the time
difference between Time1 and Time2, the macro works as advertised.  NOTE ­
This is how the Macro above is setup.

However, when the incremental time is decreased to less than the value
between Time1 and Time2, the time difference between Time1 and Time two is
AUTOMATICALLY decreased to equal the incremental value.  See values in Macro
below:

READ ABC 
SETBB TIME1 2300 
DO TIME2 FROM 2400 TO 2800 BY 5
XLIM %TIME1 $TIME2 
TITLE 'Particle Motion from %TIME1 to $TIME2$'
PLOTPM 
SETBB TIME1 $TIME2 
ENDDO

I have not found a solution to this problem.

If anyone has encountered this problem, or has a suggestion on how to
alleviate the problem, I would appreciate hearing from them.

Thank You

Bob Hancock
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20081008/8ae3f9f4/attachment.html>


More information about the sac-help mailing list