I am running a SAC macro to add the lat and long to a total of 32 events.
It turns out that the macro only counts 26 events and leaves the rest of
the events untouched.
I ran the macro for several folders (I have to do it for many folders with
32 events each) and I found out that 26 is the max iterations that the DO
loop can do under SAC. Also, I found out that when number of events is
greater that 32 the macro does not even run and the following message just
comes out:
"Segmentation fault".
here is the macro :
echo on
**cc OBS02
**cc LAT = 32.8118
**cc LON =-118.8036
cd /home/lennin/lennin1/test3_99/added_events/all_OBS/OBS02
do STAT wild xx*.SAC
r $STAT
ch stla 32.8118
ch stlo -118.8036
write change SAC hac
enddo
echo off
any input?
Thanks