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