<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi, <br>I am executing the following simple macro in sac 101.3b. I have 42 files in the directory and the macro seems to act only&nbsp; on 23 of them. All the sac files have an OMARKER and it is always negative. I am just wondering if there is a memory limit to sac when macros are executed? Any help is much appreciated!<br><br>DO FILE WILD *.SAC<br>&nbsp; READ $FILE<br>&nbsp; SETBB OMKR &amp;1,OMARKER<br>&nbsp; GETBB OMKR<br><br>&nbsp; XLIM T0 -10 10<br>&nbsp; P<br>&nbsp; CUT ON<br>&nbsp; CUTERR FILLZ<br>&nbsp; CUT b %OMKR e<br>&nbsp; READ $FILE<br>&nbsp; WRITE OVER<br>ENDDO<br>CUT OFF<br><br>Januka.<br><br><div style="color: rgb(162, 162, 162);"><strong><font style="font-style: italic;" size="2"><font class="Apple-style-span" face="garamond, 'new york', times, serif">Serenity isn't freedom from the storm, but peace within the storm</font></font><font
 class="Apple-style-span" face="garamond, 'new york', times, serif"><br></font></strong></div>  <div style="color: rgb(162, 162, 162);"><font size="2"><strong><font class="Apple-style-span" face="garamond, 'new york', times, serif">Januka Attanayake&nbsp;</font></strong></font></div>  <div style="color: rgb(162, 162, 162);"><font size="2"><strong><font class="Apple-style-span" face="garamond, 'new york', times, serif">Global Seismology &amp; Economics<br>The University of Connecticut <br>Beach Hall - U2045<br>354, Mansfield Rd; <br>Storrs, CT 06269<br></font></strong></font><font size="2"><strong style="font-weight: bold;"><font class="Apple-style-span" face="garamond, 'new york', times, serif">Tel :&nbsp; 860 486 0475 (Office)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></strong><strong style="font-weight: bold;"><font class="Apple-style-span" face="garamond, 'new york', times, serif">&nbsp; 860 486 3914 (Lab -
 P405)<br></font></strong></font></div>    <div style="color: rgb(134, 135, 164); font-family: times new roman,new york,times,serif;"><font size="2"><span style="color: rgb(139, 139, 139); font-weight: bold;"><font class="Apple-style-span" face="garamond, 'new york', times, serif">URL:&nbsp;</font><a rel="nofollow" target="_blank" href="http://sites.google.com/site/janukaattanayake/"><font class="Apple-style-span" face="garamond, 'new york', times, serif">http://sites.google.com/site/janukaattanayake/</font></a></span></font><div><font class="Apple-style-span" color="#a2a2a2"><br></font><br><br><br><br></div></div><br><br>--- On <b>Mon, 11/22/10, Brian Savage <i>&lt;savage@uri.edu&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Brian Savage &lt;savage@uri.edu&gt;<br>Subject: Re: [SAC-HELP] Ubuntu and sac...<br>To: "SAC-help Listserv"
 &lt;sac-help@iris.washington.edu&gt;<br>Date: Monday, November 22, 2010, 5:02 PM<br><br><div class="plainMail"><br>The message below has been identified as a bug in 101.4 and I can confirm this behavior using the ohpf command on my system.&nbsp; This came about during the conversion from 32 to 64 bit version of sac.<br><br>If you require this patch before the release of version 101.5, please contact me directly.&nbsp; This fix will be made available in version 101.5, coming out next year.<br><br>Thank you for reporting this bug to the sac-help mailing list.<br><br>Brian Savage<br><a ymailto="mailto:savage@uri.edu" href="/mc/compose?to=savage@uri.edu">savage@uri.edu</a><br><br>Re: OHPF / WAPF<br><br><br>On Nov 22, 2010, at&nbsp; 12:27 PM , Mario Ruiz Fernandez wrote:<br><br>&gt; Hello,<br>&gt; <br>&gt; Anybody knows if there is any problem related with the recent ubuntu kernels and SAC? It seems to be a bug with Time interpretation when using ppk with an
 OHPF file opened. Last months ago I was working with SAC version 101.3b and everything worked properly. But I recently actualized my ubuntu pc and this strange ppk image (see the attached file) appears. I obtain the same strange figure when using SAC version 101.3b and 101.4, so I think it is not a SAC problem but a linux one, as version 101.3b worked fine before the actualization.<br>&gt; <br>&gt; This strange problem appears also in OHPF file but not in the sac headers!!<br>&gt; <br>&gt; - ohpf file:<br>&gt; <br>&gt; OS8bIPU0&nbsp; 7 873014444060 0140733193388054-536870912.00&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;-5368ISU2&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 126.3<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;10<br>&gt; <br>&gt; <br>&gt; - sac headers:<br>&gt; <br>&gt; FILE: /Ocea/Data/072400022/07240002217.OS8b.0.sac - 1<br>&gt;
 --------------------------------------------------------------------------------------------------------------------<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;NPTS = 29964<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; B = 0.000000e+00<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; E = 2.996300e+02<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;IFTYPE = TIME SERIES FILE<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; LEVEN = TRUE<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; DELTA = 1.000000e-02<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;DEPMIN = -3.011890e+05<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;DEPMAX = 1.958390e+05<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;DEPMEN = -4.201941e+03<br>&gt;&nbsp; &nbsp; &nbsp; AMARKER = 38.073&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;(IPU0)<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;T0MARKER = 42.853&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;(ISU2)<br>&gt;&nbsp; &nbsp; &nbsp; FMARKER = 164.33<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;KZDATE = AUG
 28 (240), 2007<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;KZTIME = 00:22:17.932<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; KINST = 014<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; KSTNM = OS8b<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; CMPAZ = 0.000000e+00<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;CMPINC = 0.000000e+00<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;STLA = 1.514958e+01<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;STLO = -6.044403e+01<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;STEL = -3.000000e+03<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; KEVNM = 07240002<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;LOVROK = TRUE<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; NVHDR = 6<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; NORID = 0<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; NEVID = 0<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;LPSPOL = FALSE<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;LCALDA = TRUE<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;KCMPNM = 0<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;KNETWK = SAntll07<br>&gt; <br>&gt; The same
 problem is obtained in a 64 and and a 32 bits pc.<br>&gt; <br>&gt; fram:~&gt; uname -a<br>&gt; Linux fram 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux<br>&gt; <br>&gt; <br>&gt; xslave:~&gt; uname -a<br>&gt; Linux xslave 2.6.31-22-generic-pae #68-Ubuntu SMP Tue Oct 26 16:52:34 UTC 2010 i686 GNU/Linux<br>&gt; <br>&gt; Thank you in advance,<br>&gt; <br>&gt; Best Regads,<br>&gt; Mario<br>&gt; <br>&gt; --------------------------------------------------------------<br>&gt; Mario Ruiz Fernandez<br>&gt; <br>&gt; Dep. d'Estructura i Dinamica de la Terra<br>&gt; Institut de Ciencies de la Terra 'Jaume Almera' ICTJA-CSIC<br>&gt; c/ Lluis Sole Sabaris s/n 08028 Barcelona (Spain)<br>&gt; <br>&gt; Tel.:&nbsp; &nbsp;&nbsp;&nbsp;+34 93 409 54 10<br>&gt; Fax:&nbsp; &nbsp; &nbsp; +34 93 411 00 12<br>&gt; E-mail:&nbsp;&nbsp;&nbsp;<a ymailto="mailto:mruiz@ictja.csic.es"
 href="/mc/compose?to=mruiz@ictja.csic.es">mruiz@ictja.csic.es</a><br>&gt; <br>&gt; www:&nbsp; &nbsp; &nbsp; <a href="http://www.ictja.csic.es/edt/" target="_blank">http://www.ictja.csic.es/edt/</a><br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.tesisenxarxa.net/TDX-0303108-135403/" target="_blank">http://www.tesisenxarxa.net/TDX-0303108-135403/</a><br>&gt; ------------------------------------------------------------<br>&gt; <br>&gt; &lt;SAC_ppk.png&gt;<br><br>_______________________________________________<br>sac-help mailing list<br><a ymailto="mailto:sac-help@iris.washington.edu" href="/mc/compose?to=sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br><a href="http://www.iris.washington.edu/mailman/listinfo/sac-help" target="_blank">http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br></div></blockquote></td></tr></table><br>