From r95224102 at ntu.edu.tw Tue Jun 1 00:11:15 2010 From: r95224102 at ntu.edu.tw (Water You) Date: Tue, 1 Jun 2010 15:11:15 +0800 Subject: [SAC-HELP] a problem while picking phase arrival in PLOTPK window Message-ID: <707E25546B2B42F9BC7F981B297AD987@ntuf02dd5845d1> Dear All: When I try to picking phase arrival in plotpk window, I type ohpf to create a hypo file before phase picking. I can get correct P-phase arrival time after I typing "P" to decide the P-phase, however, I cannot get S-phase arrival time when I type "S" to decide the S-phase, the arrival time of S-phase reveals 0.0 both in the PPK window and in the hypo file. how can I resolve this problem? Thanks all for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.wuestefeld at bristol.ac.uk Tue Jun 1 07:27:37 2010 From: andy.wuestefeld at bristol.ac.uk (Andreas Wuestefeld) Date: Tue, 01 Jun 2010 15:27:37 +0100 Subject: [SAC-HELP] I can't install SAC-101.3b on cygwin in windows 7 Message-ID: <4C0518D9.9010703@bristol.ac.uk> Dear Isaac, Aldo I have lately had to install CYGWIN & SAC on several WIN7 computers, and I cannot reproduce the error. I assume you have a Win7 system with admin previliges, and use the latest release of CYGWIN (ver1.7.x)? Win7 has a rather strict permission policy, which sometimes results in files opened/upacked under windows are not accesible in cygwin. a "chmod" ususally helps I suggest that you unpack and untar the sac-101.3b-cygwin.tar.gz under cygwin and not Windows check manually if the install-sh exists in sac-101.3b/config hope that helps Andy -- Dr. Andreas W?stefeld, Dept. Earth Sciences, Univ. Bristol (UK) http://seis.bris.ac.uk/~glxaw/ From snoke at vt.edu Tue Jun 1 08:33:45 2010 From: snoke at vt.edu (Arthur Snoke) Date: Tue, 1 Jun 2010 11:33:45 -0400 (EDT) Subject: [SAC-HELP] I can't install SAC-101.3b on cygwin in windows 7 In-Reply-To: <4C0518D9.9010703@bristol.ac.uk> References: <4C0518D9.9010703@bristol.ac.uk> Message-ID: Andy tells me that one does not need a separate Cygwin source tarball with the newest version of Cygwin. Question; Is there any reason NOT to upgrade to the newest Cygwin? If not, there is no need to have a separate Cygwin source tarball. Arthur On Tue, 1 Jun 2010, Andreas Wuestefeld wrote: > Dear Isaac, Aldo > > I have lately had to install CYGWIN & SAC on several WIN7 computers, and I > cannot reproduce the error. I assume you have a Win7 system with admin > previliges, and use the latest release of CYGWIN (ver1.7.x)? > > Win7 has a rather strict permission policy, which sometimes results in files > opened/upacked under windows are not accesible in cygwin. a "chmod" ususally > helps > > I suggest that you unpack and untar the sac-101.3b-cygwin.tar.gz under cygwin > and not Windows > > check manually if the install-sh exists in sac-101.3b/config > > > hope that helps > Andy > > -- > Dr. Andreas W?stefeld, Dept. Earth Sciences, Univ. Bristol (UK) > http://seis.bris.ac.uk/~glxaw/ > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > From jflawrence at stanford.edu Tue Jun 1 12:57:51 2010 From: jflawrence at stanford.edu (Jesse Fisher Lawrence) Date: Tue, 01 Jun 2010 12:57:51 -0700 Subject: [SAC-HELP] ERROR 1336: Undefined header field value. kuser0 Message-ID: Hi, I am writing a set of subroutines to read in sac header information into the format I need for my program. On a unix machine I have no problems, but on linux I get the following error message: ERROR 1336: Undefined header field value. kuser0 I have filled this variable on my sac files. I can proceed despite the error, but it is not satisfying to have a bunch of error messages come up. Any suggestions? Any fixes? Any way to suppress the error message? Cheers, -Jesse ----------------------------------------------------------------------- Jesse F. Lawrence Email: jflawrence at stanford.edu Assistant Professor Office: (650) 723-9390 Department of Geophysics Fax: (650) 725-7344 Stanford University WWW: http://pangea.stanford.edu/~jfl77/ 397 Panama Mall Mitchell Building, Room 373B Stanford, CA 94305-2215 ----------------------------------------------------------------------- From Isaac.Mulamba at students.wits.ac.za Wed Jun 2 20:59:23 2010 From: Isaac.Mulamba at students.wits.ac.za (Isaac Mulamba) Date: Thu, 03 Jun 2010 05:59:23 +0200 Subject: [SAC-HELP] I can't install SAC-101.3b on cygwin in windows 7 In-Reply-To: <4C0518D9.9010703@bristol.ac.uk> References: <4C0518D9.9010703@bristol.ac.uk> Message-ID: An HTML attachment was scrubbed... URL: From kboyle at lbl.gov Fri Jun 4 08:18:38 2010 From: kboyle at lbl.gov (Katie Boyle) Date: Fri, 4 Jun 2010 08:18:38 -0700 Subject: [SAC-HELP] SAC Memory Dump Message-ID: Hi All, Every time I run SAC, it barfs this out (all I did for this example was type 'sac' and then immediately typed 'quit'): me at me-desktop:~$ sac SEISMIC ANALYSIS CODE [09/04/2008 (Version 101.2)] Copyright 1995 Regents of the University of California SAC> quit *** glibc detected *** sac: free(): invalid next size (fast): 0x09ba1178 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb7d06454] /lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7d084b6] sac[0x81e5fc6] sac[0x81d82eb] sac[0x8052154] sac[0x808db9f] sac[0x8058d7e] sac[0x804f314] sac[0x804b6eb] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7cad685] sac[0x804b041] ======= Memory map: ======== 08048000-0820b000 r-xp 00000000 08:01 20277010 /usr/local/sac/bin/sac 0820b000-082d1000 rw-p 001c3000 08:01 20277010 /usr/local/sac/bin/sac 082d1000-08555000 rw-p 082d1000 00:00 0 09b8c000-09bad000 rw-p 09b8c000 00:00 0 [heap] b7b00000-b7b21000 rw-p b7b00000 00:00 0 b7b21000-b7c00000 ---p b7b21000 00:00 0 b7c52000-b7c5f000 r-xp 00000000 08:01 11468812 /lib/libgcc_s.so.1 b7c5f000-b7c60000 r--p 0000c000 08:01 11468812 /lib/libgcc_s.so.1 b7c60000-b7c61000 rw-p 0000d000 08:01 11468812 /lib/libgcc_s.so.1 b7c71000-b7c72000 rw-p b7c71000 00:00 0 b7c72000-b7c76000 r-xp 00000000 08:01 19940930 /usr/lib/libXdmcp.so.6.0.0 b7c76000-b7c77000 rw-p 00003000 08:01 19940930 /usr/lib/libXdmcp.so.6.0.0 b7c77000-b7c79000 r-xp 00000000 08:01 19940919 /usr/lib/libXau.so.6.0.0 b7c79000-b7c7a000 rw-p 00001000 08:01 19940919 /usr/lib/libXau.so.6.0.0 b7c7a000-b7c91000 r-xp 00000000 08:01 11313175 /usr/lib/libxcb.so.1.0.0 b7c91000-b7c92000 r--p 00016000 08:01 11313175 /usr/lib/libxcb.so.1.0.0 b7c92000-b7c93000 rw-p 00017000 08:01 11313175 /usr/lib/libxcb.so.1.0.0 b7c93000-b7c94000 rw-p b7c93000 00:00 0 b7c94000-b7c95000 r-xp 00000000 08:01 11313173 /usr/lib/libxcb-xlib.so.0.0.0 b7c95000-b7c96000 r--p 00000000 08:01 11313173 /usr/lib/libxcb-xlib.so.0.0.0 b7c96000-b7c97000 rw-p 00001000 08:01 11313173 /usr/lib/libxcb-xlib.so.0.0.0 b7c97000-b7def000 r-xp 00000000 08:01 11486016 /lib/tls/i686/cmov/ libc-2.8.90.so b7def000-b7df1000 r--p 00158000 08:01 11486016 /lib/tls/i686/cmov/ libc-2.8.90.so b7df1000-b7df2000 rw-p 0015a000 08:01 11486016 /lib/tls/i686/cmov/ libc-2.8.90.so b7df2000-b7df5000 rw-p b7df2000 00:00 0 b7df5000-b7e22000 r-xp 00000000 08:01 11468877 /lib/libncurses.so.5.6 b7e22000-b7e25000 rw-p 0002c000 08:01 11468877 /lib/libncurses.so.5.6 b7e25000-b7e49000 r-xp 00000000 08:01 11486020 /lib/tls/i686/cmov/ libm-2.8.90.so b7e49000-b7e4a000 r--p 00023000 08:01 11486020 /lib/tls/i686/cmov/ libm-2.8.90.so b7e4a000-b7e4b000 rw-p 00024000 08:01 11486020 /lib/tls/i686/cmov/ libm-2.8.90.so b7e4b000-b7e4d000 r-xp 00000000 08:01 11486019 /lib/tls/i686/cmov/ libdl-2.8.90.so b7e4d000-b7e4e000 r--p 00001000 08:01 11486019 /lib/tls/i686/cmov/ libdl-2.8.90.so b7e4e000-b7e4f000 rw-p 00002000 08:01 11486019 /lib/tls/i686/cmov/ libdl-2.8.90.so b7e4f000-b7e50000 rw-p b7e4f000 00:00 0 b7e50000-b7f3b000 r-xp 00000000 08:01 19940107 /usr/lib/libX11.so.6.2.0 b7f3b000-b7f3c000 r--p 000ea000 08:01 19940107 /usr/lib/libX11.so.6.2.0 b7f3c000-b7f3e000 rw-p 000eb000 08:01 19940107 /usr/lib/libX11.so.6.2.0 b7f3e000-b7f3f000 rw-p b7f3e000 00:00 0 b7f3f000-b7f54000 r-xp 00000000 08:01 19940878 /usr/lib/libICE.so.6.3.0 b7f54000-b7f55000 rw-p 00014000 08:01 19940878 /usr/lib/libICE.so.6.3.0 b7f55000-b7f57000 rw-p b7f55000 00:00 0 b7f57000-b7f5e000 r-xp 00000000 08:01 19940907 /usr/lib/libSM.so.6.0.0 b7f5e000-b7f5f000 r--p 00006000 08:01 19940907 /usr/lib/libSM.so.6.0.0 b7f5f000-b7f60000 rw-p 00007000 08:01 19940907 /usr/lib/libSM.so.6.0.0 b7f6d000-b7f72000 rw-p b7f6d000 00:00 0 b7f72000-b7f8c000 r-xp 00000000 08:01 11468862 /lib/ld-2.8.90.so b7f8c000-b7f8d000 r-xp b7f8c000 00:00 0 [vdso] b7f8d000-b7f8e000 r--p 0001a000 08:01 11468862 /lib/ld-2.8.90.so b7f8e000-b7f8f000 rw-p 0001b000 08:01 11468862 /lib/ld-2.8.90.so bfda0000-bfdb5000 rw-p bffeb000 00:00 0 [stack] Aborted -------------- next part -------------- An HTML attachment was scrubbed... URL: From savage at uri.edu Fri Jun 4 10:55:29 2010 From: savage at uri.edu (Brian Savage) Date: Fri, 4 Jun 2010 13:55:29 -0400 Subject: [SAC-HELP] SAC Memory Dump In-Reply-To: References: Message-ID: <17406FE7-37C3-4E09-A6A0-B1B32198B621@uri.edu> Dear Katie Try looking at this page: http://www.iris.washington.edu/pipermail/sac-help/2009-August/000593.html It is the same issue as you are running into. This will make sure SAC does not perform a memory dump when you run it. Brian Savage savage at uri.edu On Jun 4, 2010, at 11:18 AM, Katie Boyle wrote: > Hi All, > > Every time I run SAC, it barfs this out (all I did for this example > was type 'sac' and then immediately typed 'quit'): > > me at me-desktop:~$ sac > SEISMIC ANALYSIS CODE [09/04/2008 (Version 101.2)] > Copyright 1995 Regents of the University of California > > SAC> quit > *** glibc detected *** sac: free(): invalid next size (fast): > 0x09ba1178 *** > ======= Backtrace: ========= > /lib/tls/i686/cmov/libc.so.6[0xb7d06454] > /lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7d084b6] > sac[0x81e5fc6] > sac[0x81d82eb] > sac[0x8052154] > sac[0x808db9f] > sac[0x8058d7e] > sac[0x804f314] > sac[0x804b6eb] > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7cad685] > sac[0x804b041] > ======= Memory map: ======== > 08048000-0820b000 r-xp 00000000 08:01 20277010 /usr/local/sac/bin/ > sac > 0820b000-082d1000 rw-p 001c3000 08:01 20277010 /usr/local/sac/bin/ > sac > 082d1000-08555000 rw-p 082d1000 00:00 0 > 09b8c000-09bad000 rw-p 09b8c000 00:00 0 [heap] > b7b00000-b7b21000 rw-p b7b00000 00:00 0 > b7b21000-b7c00000 ---p b7b21000 00:00 0 > b7c52000-b7c5f000 r-xp 00000000 08:01 11468812 /lib/libgcc_s.so.1 > b7c5f000-b7c60000 r--p 0000c000 08:01 11468812 /lib/libgcc_s.so.1 > b7c60000-b7c61000 rw-p 0000d000 08:01 11468812 /lib/libgcc_s.so.1 > b7c71000-b7c72000 rw-p b7c71000 00:00 0 > b7c72000-b7c76000 r-xp 00000000 08:01 19940930 /usr/lib/ > libXdmcp.so.6.0.0 > b7c76000-b7c77000 rw-p 00003000 08:01 19940930 /usr/lib/ > libXdmcp.so.6.0.0 > b7c77000-b7c79000 r-xp 00000000 08:01 19940919 /usr/lib/libXau.so. > 6.0.0 > b7c79000-b7c7a000 rw-p 00001000 08:01 19940919 /usr/lib/libXau.so. > 6.0.0 > b7c7a000-b7c91000 r-xp 00000000 08:01 11313175 /usr/lib/libxcb.so. > 1.0.0 > b7c91000-b7c92000 r--p 00016000 08:01 11313175 /usr/lib/libxcb.so. > 1.0.0 > b7c92000-b7c93000 rw-p 00017000 08:01 11313175 /usr/lib/libxcb.so. > 1.0.0 > b7c93000-b7c94000 rw-p b7c93000 00:00 0 > b7c94000-b7c95000 r-xp 00000000 08:01 11313173 /usr/lib/libxcb- > xlib.so.0.0.0 > b7c95000-b7c96000 r--p 00000000 08:01 11313173 /usr/lib/libxcb- > xlib.so.0.0.0 > b7c96000-b7c97000 rw-p 00001000 08:01 11313173 /usr/lib/libxcb- > xlib.so.0.0.0 > b7c97000-b7def000 r-xp 00000000 08:01 11486016 /lib/tls/i686/cmov/ > libc-2.8.90.so > b7def000-b7df1000 r--p 00158000 08:01 11486016 /lib/tls/i686/cmov/ > libc-2.8.90.so > b7df1000-b7df2000 rw-p 0015a000 08:01 11486016 /lib/tls/i686/cmov/ > libc-2.8.90.so > b7df2000-b7df5000 rw-p b7df2000 00:00 0 > b7df5000-b7e22000 r-xp 00000000 08:01 11468877 /lib/libncurses.so. > 5.6 > b7e22000-b7e25000 rw-p 0002c000 08:01 11468877 /lib/libncurses.so. > 5.6 > b7e25000-b7e49000 r-xp 00000000 08:01 11486020 /lib/tls/i686/cmov/ > libm-2.8.90.so > b7e49000-b7e4a000 r--p 00023000 08:01 11486020 /lib/tls/i686/cmov/ > libm-2.8.90.so > b7e4a000-b7e4b000 rw-p 00024000 08:01 11486020 /lib/tls/i686/cmov/ > libm-2.8.90.so > b7e4b000-b7e4d000 r-xp 00000000 08:01 11486019 /lib/tls/i686/cmov/ > libdl-2.8.90.so > b7e4d000-b7e4e000 r--p 00001000 08:01 11486019 /lib/tls/i686/cmov/ > libdl-2.8.90.so > b7e4e000-b7e4f000 rw-p 00002000 08:01 11486019 /lib/tls/i686/cmov/ > libdl-2.8.90.so > b7e4f000-b7e50000 rw-p b7e4f000 00:00 0 > b7e50000-b7f3b000 r-xp 00000000 08:01 19940107 /usr/lib/libX11.so. > 6.2.0 > b7f3b000-b7f3c000 r--p 000ea000 08:01 19940107 /usr/lib/libX11.so. > 6.2.0 > b7f3c000-b7f3e000 rw-p 000eb000 08:01 19940107 /usr/lib/libX11.so. > 6.2.0 > b7f3e000-b7f3f000 rw-p b7f3e000 00:00 0 > b7f3f000-b7f54000 r-xp 00000000 08:01 19940878 /usr/lib/libICE.so. > 6.3.0 > b7f54000-b7f55000 rw-p 00014000 08:01 19940878 /usr/lib/libICE.so. > 6.3.0 > b7f55000-b7f57000 rw-p b7f55000 00:00 0 > b7f57000-b7f5e000 r-xp 00000000 08:01 19940907 /usr/lib/libSM.so. > 6.0.0 > b7f5e000-b7f5f000 r--p 00006000 08:01 19940907 /usr/lib/libSM.so. > 6.0.0 > b7f5f000-b7f60000 rw-p 00007000 08:01 19940907 /usr/lib/libSM.so. > 6.0.0 > b7f6d000-b7f72000 rw-p b7f6d000 00:00 0 > b7f72000-b7f8c000 r-xp 00000000 08:01 11468862 /lib/ld-2.8.90.so > b7f8c000-b7f8d000 r-xp b7f8c000 00:00 0 [vdso] > b7f8d000-b7f8e000 r--p 0001a000 08:01 11468862 /lib/ld-2.8.90.so > b7f8e000-b7f8f000 rw-p 0001b000 08:01 11468862 /lib/ld-2.8.90.so > bfda0000-bfdb5000 rw-p bffeb000 00:00 0 [stack] > Aborted > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From gauravdutta23 at gmail.com Sat Jun 5 03:48:31 2010 From: gauravdutta23 at gmail.com (gaurav dutta) Date: Sat, 5 Jun 2010 16:18:31 +0530 Subject: [SAC-HELP] How to convert data in .sac format to ascii format ? Message-ID: Dear Sir, How to convert data which is in sac format into ascii format ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rm438 at cam.ac.uk Sat Jun 5 04:12:12 2010 From: rm438 at cam.ac.uk (Bob Myhill) Date: Sat, 5 Jun 2010 12:12:12 +0100 Subject: [SAC-HELP] How to convert data in .sac format to ascii format ? In-Reply-To: References: Message-ID: Dear Guarav Dutta, Please see the documentation on the SAC 'convert' utility ( http://www.iris.edu/manuals/sac/SAC_Commands/convert; the whole manual available at http://www.iris.edu/manuals/sac/manual.html) If you wish to convert many files, then you may find it best to create a SAC macro in order to save time. Finally, there are various C programs on the internet to read and write SAC files without calling on SAC itself. Some (untested by myself) are to be found here: http://www.eas.slu.edu/Earthquake_Center/CPS/TUTORIAL/SACIO/index.html If these do not work, I can supply you with my own *.c and *.h files, but I imagine they are very similar. This final method is undoubtedly quicker at run time, but it may be more time consuming to code if you only wish to convert a few files. Best wishes, Bob Myhill __________________________________ Bob Myhill Department of Earth Sciences University of Cambridge Bullard Laboratories Madingley Rise Cambridge CB3 0EZ United Kingdom Email: rm438 at cam.ac.uk __________________________________ On 5 June 2010 11:48, gaurav dutta wrote: > Dear Sir, > > How to convert data which is in sac format into ascii format ? > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at iris.washington.edu Sat Jun 5 06:46:19 2010 From: rick at iris.washington.edu (Rick Benson) Date: Sat, 5 Jun 2010 06:46:19 -0700 Subject: [SAC-HELP] How to convert data in .sac format to ascii format ? In-Reply-To: References: Message-ID: <90E182E6-D185-443E-87F8-56860DFCF687@iris.washington.edu> One suggestion is to download and utilize the sac2asc utility available from the http://www.iris.edu/pub/programs/SAC/ site and called sac2asc.tar Good luck- Rick On Jun 5, 2010, at 3:48 AM, gaurav dutta wrote: > Dear Sir, > > How to convert data which is in sac format into ascii format ? > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help ================ Rick Benson Director of Operations IRIS DMC (206)547-0393 ext. 119(office) rick at iris.washington.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From paola.morasca at yahoo.com Sat Jun 5 22:42:55 2010 From: paola.morasca at yahoo.com (Paola Morasca) Date: Sun, 6 Jun 2010 07:42:55 +0200 Subject: [SAC-HELP] Fwd: problem with sacio.a when I compile using gfortran under x86_64 References: <7C606306-10BE-4590-81B7-4990C8F2A0C8@yahoo.com> Message-ID: <1DDC7CD5-1961-467C-9665-777D6C47B41E@yahoo.com> Hi Brian, I am not sure you got my reply including the information you asked, so I forward it in this email. Also, I tried to substitute the sac bin version with the sac source version, but after the installation I still get the same error: bash-3.2$ make Masterprogram gfortran -m32 Masterprogram.o /usr/local/sac/lib/libsac.a /usr/local/sac/lib/sacio.a -o Masterprogram Undefined symbols: "_cmmem", referenced from: _cmmem$non_lazy_ptr in sacio.a(writevfile.o) _cmmem$non_lazy_ptr in sacio.a(putvvstring.o) _cmmem$non_lazy_ptr in sacio.a(getvvstring.o) _cmmem$non_lazy_ptr in sacio.a(initializevar.o) _cmmem$non_lazy_ptr in sacio.a(initvlist.o) _cmmem$non_lazy_ptr in sacio.a(nextvlist.o) _cmmem$non_lazy_ptr in sacio.a(putventry.o) _cmmem$non_lazy_ptr in sacio.a(increasenlist.o) _cmmem$non_lazy_ptr in sacio.a(readvfile.o) _cmmem$non_lazy_ptr in sacio.a(deletev.o) _cmmem$non_lazy_ptr in sacio.a(setvreadonly.o) _cmmem$non_lazy_ptr in sacio.a(encodevnil.o) _cmmem$non_lazy_ptr in sacio.a(existsv.o) _cmmem$non_lazy_ptr in sacio.a(findvnil.o) _cmmem$non_lazy_ptr in sacio.a(deletevlist.o) _cmmem$non_lazy_ptr in sacio.a(createvlist.o) (maybe you meant: _cmmem$non_lazy_ptr) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [Masterprogram] Error 1 What does it mean? Thank you for you help Paola Inizio messaggio inoltrato: > Da: Paola Morasca > Data: 01 giugno 2010 11.53.53 GMT+02.00 > A: Brian Savage > Oggetto: Re: [SAC-HELP] problem with sacio.a when I compile using gfortran under x86_64 > > Hi Brian, > > I use Mac OS X 10.6.3 with sac version 101.3b. > I have got the gfortran from: http://hpc.sourceforge.net/ > and precisely the file is "gfortran-snwleo-intel-bin.tar" > The program was written in fortran (Masterprogram.f). > Here are information on libsac.a and sacio.a: > > > bash-3.2$ file /usr/local/sac/lib/libsac.a > /usr/local/sac/lib/libsac.a: Mach-O universal binary with 2 architectures > /usr/local/sac/lib/libsac.a (for architecture ppc): current ar archive random library > /usr/local/sac/lib/libsac.a (for architecture i386): current ar archive > bash-3.2$ file /usr/local/sac/lib/sacio.a > /usr/local/sac/lib/sacio.a: Mach-O universal binary with 2 architectures > /usr/local/sac/lib/sacio.a (for architecture ppc): current ar archive random library > /usr/local/sac/lib/sacio.a (for architecture i386): current ar archive > > thanks > > Paola > > > > Il giorno 31/mag/2010, alle ore 19.08, Brian Savage ha scritto: > >> Dear Paola, >> >> I am unable to reproduce this on my OSX machine (!0.5) with 101.3b. I am not certain why this message is appearing. Could you give me more details about which version of gfortran you are using, your OSX version, and what language Masterprogram.o was written in ? Also, could you run >> >> % file /usr/local/sac/lib/libsac.a >> % file /usr/local/sac/lib/sacio.a >> >> so I can tell what is really in those files. They should be universal binaries (PPC and Intel) and should also be 32 bit. >> >> Thanks >> Brian Savage >> savage at uri.edu >> >> On May 30, 2010, at 9:41 AM , Paola Morasca wrote: >> >>> Hi All, >>> >>> I have a compilation problem (look at the bottom). Is that because I have got the binary sac version for OSX (Version 101.3b) that is compiled for a 64 bit architecture? I have to use -m32 because otherwise I get " missing required architecture x86_64 in file". Should I get the source code to be compiled for 32 bit so that I have the right library? Or maybe there is another solution? >>> >>> Thank you for the help. >>> >>> Paola >>> >>> bash-3.2$ gfortran -m32 -C Masterprogram.o /usr/local/sac/lib/libsac.a /usr/local/sac/lib/sacio.a -o Masterprogram >>> Undefined symbols: >>> "_cmmem", referenced from: >>> _cmmem$non_lazy_ptr in sacio.a(writevfile.o) >>> _cmmem$non_lazy_ptr in sacio.a(putvvstring.o) >>> _cmmem$non_lazy_ptr in sacio.a(getvvstring.o) >>> _cmmem$non_lazy_ptr in sacio.a(initializevar.o) >>> _cmmem$non_lazy_ptr in sacio.a(initvlist.o) >>> _cmmem$non_lazy_ptr in sacio.a(nextvlist.o) >>> _cmmem$non_lazy_ptr in sacio.a(putventry.o) >>> _cmmem$non_lazy_ptr in sacio.a(increasenlist.o) >>> _cmmem$non_lazy_ptr in sacio.a(encodevnil.o) >>> _cmmem$non_lazy_ptr in sacio.a(setvreadonly.o) >>> _cmmem$non_lazy_ptr in sacio.a(readvfile.o) >>> _cmmem$non_lazy_ptr in sacio.a(deletev.o) >>> _cmmem$non_lazy_ptr in sacio.a(existsv.o) >>> _cmmem$non_lazy_ptr in sacio.a(createvlist.o) >>> _cmmem$non_lazy_ptr in sacio.a(findvnil.o) >>> _cmmem$non_lazy_ptr in sacio.a(deletevlist.o) >>> (maybe you meant: _cmmem$non_lazy_ptr) >>> ld: symbol(s) not found >>> collect2: ld returned 1 exit status >>> _______________________________________________ >>> sac-help mailing list >>> sac-help at iris.washington.edu >>> http://www.iris.washington.edu/mailman/listinfo/sac-help >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kadmiel at bgu.ac.il Tue Jun 8 07:12:38 2010 From: kadmiel at bgu.ac.il (Shahar Shani Kadmiel) Date: Tue, 8 Jun 2010 17:12:38 +0300 Subject: [SAC-HELP] Compiling a c code with subroutines from sacio.a Message-ID: <9702F4F5-9733-4E19-B47F-A1B70D3ABCCB@bgu.ac.il> I have written a short code in c utilizing the "wsac1" subroutine. When compiling, I get this: Undefined symbols: "_wsac1", referenced from: _main in cc7iJC76.o ld: symbol(s) not found collect2: ld returned 1 exit status This is the only problem and when I comment out the line containing wsac1 the program compiles with no errors. The part after _main, where it says "cc7iJC76.o", changes with every try. This is my compile line: cc codeName.c -o codeName -lm -m32 sacio.a where sacio.a is in the same folder as codeName.c. I have tried giving the full path of sacio.a as-well as changing the order of appearance of the arguments in the compile line. I know that sacio.a is being read because when -m32 wasn't specified I got a warning stating: ld: warning: in sacio.a, file was built for unsupported file format which is not the architecture being linked (x86_64) I am using MacSAC 10.6f-grh104 and the sacio.a that came with it. I am currently trying to compile this code on a Mac running OS X 10.6.3 (i7 processor) but I intend to compile this on a linux machine that does not have sac installed. Can I copy the sacio.a that came with MacSAC or should I use a different archive file? Thanks for all your help. Shahar -------------- next part -------------- An HTML attachment was scrubbed... URL: From kadmiel at bgu.ac.il Wed Jun 9 05:02:49 2010 From: kadmiel at bgu.ac.il (Shahar Shani Kadmiel) Date: Wed, 9 Jun 2010 15:02:49 +0300 Subject: [SAC-HELP] sacio.a for linux Message-ID: <1E437206-AF4E-4CD6-8E55-3FBF65CCF34D@bgu.ac.il> I am trying to compile a short c code using some subroutines from sacio.a I get this error: sacio.a: could not read symbols: Archive has no index; run ranlib to add one collect2: ld returned 1 exit status When I run ranlib, I get this: ranlib: sacio.a: Malformed archive I have a feeling this has to do with the fact I am using the sacio.a archive which is distributed with MacSAC and is not compatible with the linux machine I am compiling on. What to do? From savage at uri.edu Wed Jun 9 06:24:12 2010 From: savage at uri.edu (Brian Savage) Date: Wed, 9 Jun 2010 09:24:12 -0400 Subject: [SAC-HELP] sacio.a for linux In-Reply-To: <1E437206-AF4E-4CD6-8E55-3FBF65CCF34D@bgu.ac.il> References: <1E437206-AF4E-4CD6-8E55-3FBF65CCF34D@bgu.ac.il> Message-ID: Dear Shahar Shandi Kadmiel You are trying to use a library compiled for Mac/OSX on a linux machine. This is always going to fail. If you need a linux version of sac along with the sacio.a library, please obtain a version from IRIS. http://www.iris.edu/software/sac/ http://www.iris.edu/software/sac/sac.request.htm Brian On Jun 9, 2010, at 8:02 AM , Shahar Shani Kadmiel wrote: > I am trying to compile a short c code using some subroutines from > sacio.a > > I get this error: > > sacio.a: could not read symbols: Archive has no index; run ranlib to > add one > collect2: ld returned 1 exit status > > When I run ranlib, I get this: > > ranlib: sacio.a: Malformed archive > > I have a feeling this has to do with the fact I am using the sacio.a > archive which is distributed with MacSAC and is not compatible with > the linux machine I am compiling on. > What to do? > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From savage at uri.edu Wed Jun 9 07:36:11 2010 From: savage at uri.edu (Brian Savage) Date: Wed, 9 Jun 2010 10:36:11 -0400 Subject: [SAC-HELP] Compiling a c code with subroutines from sacio.a In-Reply-To: <9702F4F5-9733-4E19-B47F-A1B70D3ABCCB@bgu.ac.il> References: <9702F4F5-9733-4E19-B47F-A1B70D3ABCCB@bgu.ac.il> Message-ID: Dear Shahar, You may need to add an underscore to the function call within your C code. MacSAC is a fortran version of SAC from the original lineage of SAC, before SAC2000 / SAC at IRIS. The function in the sacio.a library probably have trailing underscores in them. This is not an issue for the SAC version from IRIS. See: http://www.ibiblio.org/pub/languages/fortran/ch1-11.html Brian Savage savage at uri.edu On Jun 8, 2010, at 10:12 AM , Shahar Shani Kadmiel wrote: > I have written a short code in c utilizing the "wsac1" subroutine. > When compiling, I get this: > > Undefined symbols: > "_wsac1", referenced from: > _main in cc7iJC76.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > > This is the only problem and when I comment out the line containing > wsac1 the program compiles with no errors. > The part after _main, where it says "cc7iJC76.o", changes with every > try. > > This is my compile line: > > cc codeName.c -o codeName -lm -m32 sacio.a > > where sacio.a is in the same folder as codeName.c. > I have tried giving the full path of sacio.a as-well as changing the > order of appearance of the arguments in the compile line. > > I know that sacio.a is being read because when -m32 wasn't specified > I got a warning stating: > > ld: warning: in sacio.a, file was built for unsupported file format > which is not the architecture being linked (x86_64) > > I am using MacSAC 10.6f-grh104 and the sacio.a that came with it. > I am currently trying to compile this code on a Mac running OS X > 10.6.3 (i7 processor) but I intend to compile this on a linux > machine that does not have sac installed. Can I copy the sacio.a > that came with MacSAC or should I use a different archive file? > > Thanks for all your help. > Shahar > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From snoke at vt.edu Wed Jun 9 18:14:34 2010 From: snoke at vt.edu (Arthur Snoke) Date: Wed, 9 Jun 2010 21:14:34 -0400 (EDT) Subject: [SAC-HELP] SAC version 101.4 is now available Message-ID: Version 101.4 of SAC is now available for download from URL . For a summary of the changes between this version and 101.3b (released August 2009), one can view the HISTORY file at . That file, as well as the more detailed CHANGES file, can also be accessed from the IRIS software/sac page. As before, there are binary distributions for Sun Solaris, Linux (32 bit and 64 bit) and Mac OS X. There are now two binary distributions for the Mac: the 32-bit "fat binary" version as in previous releases that can run on all OS levels, and a 64-bit version for Mac OS 10.6. While SAC will run on OS 10.6 using the 32-bit distribution, the SAC libraries in that distribution will not work in programs built using the 64-bit compilers that are the default for OS 10.6. For licensing reasons IRIS cannot provide a Windows Cygwin binary distribution, but SAC can be built on Cygwin from a separately available Cygwin source distribution. However, as of Cygwin version 1.7, it is possible to build SAC on Cygwin using the normal source tarball. A new feature that accompanies this release is that the SAC Users Manual at has been updated. The format is different from before, but we think that everything is there that was on the earlier set of pages, and -- unlike the earlier versions of the manual -- the content of the pages are exactly the same as in the help files that one accesses directly from within SAC. Please report any questions/problems/suggestions regarding the manual to . (Unlike the releases of SAC, the manual can be corrected or updated very easily!) The SAC Development Team June 9, 2010 From torpey3 at tcnj.edu Mon Jun 21 12:00:55 2010 From: torpey3 at tcnj.edu (Megan E Torpey) Date: Mon, 21 Jun 2010 15:00:55 -0400 (EDT) Subject: [SAC-HELP] HELP! In-Reply-To: <410591036.7631901277146480878.JavaMail.root@zcs.TCNJ.EDU> Message-ID: <627888170.7634491277146855056.JavaMail.root@zcs.TCNJ.EDU> Hi, I'm having a SAC problem. I'm running a program to digitize paper seismograms. My digitization program saves the files I create as .SAC files. I got one digitized and saved it as .SAC but when I tried to read the file into SAC I got the following error: ERROR 1318: Header in disk file is out of date: myfile Header version number is incorrect. Header seems byte-swapped?byte-swap file and retry. I looked up sac help online and I got : http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.html but that didn't work =( SAC is telling me that sactosac -m is not a valid command. I would really appreciate any help/ideas asap. Thanks, Megan Torpey From m.tchelo at gmail.com Mon Jun 21 12:19:46 2010 From: m.tchelo at gmail.com (Marcelo Bianchi) Date: Mon, 21 Jun 2010 21:19:46 +0200 Subject: [SAC-HELP] HELP! In-Reply-To: <627888170.7634491277146855056.JavaMail.root@zcs.TCNJ.EDU> References: <410591036.7631901277146480878.JavaMail.root@zcs.TCNJ.EDU> <627888170.7634491277146855056.JavaMail.root@zcs.TCNJ.EDU> Message-ID: Hi Megan, I never try to digitalize seismogram but i have a program that can do the swap of sac files. http://sites.google.com/site/foo4funreborn/software/sacswapbyte regards marcelo -- Mobile ~ +47 908 62 225 http://sites.google.com/site/foo4funreborn/ 2010/6/21 Megan E Torpey > Hi, > > I'm having a SAC problem. I'm running a program to digitize paper > seismograms. My digitization program saves the files I create as .SAC files. > I got one digitized and saved it as .SAC but when I tried to read the file > into SAC I got the following error: > > ERROR 1318: Header in disk file is out of date: myfile > > Header version number is incorrect. > > Header seems byte-swapped?byte-swap file and retry. > > I looked up sac help online and I got : > http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.htmlbut that didn't work =( SAC is telling me that sactosac -m is not a valid > command. I would really appreciate any help/ideas asap. > > Thanks, > Megan Torpey > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > -------------- next part -------------- An HTML attachment was scrubbed... URL: From snoke at vt.edu Mon Jun 21 13:44:35 2010 From: snoke at vt.edu (Arthur Snoke) Date: Mon, 21 Jun 2010 16:44:35 -0400 (EDT) Subject: [SAC-HELP] HELP! In-Reply-To: <627888170.7634491277146855056.JavaMail.root@zcs.TCNJ.EDU> References: <627888170.7634491277146855056.JavaMail.root@zcs.TCNJ.EDU> Message-ID: > I'm having a SAC problem. I'm running a program to digitize paper > seismograms. My digitization program saves the files I create as .SAC > files. I got one digitized and saved it as .SAC but when I tried to read > the file into SAC I got the following error: > > ERROR 1318: Header in disk file is out of date: myfile > > Header version number is incorrect. > > Header seems byte-swapped?byte-swap file and retry. > > I looked up sac help online and I got : > http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.html > but that didn't work =( SAC is telling me that sactosac -m is not a > valid command. I would really appreciate any help/ideas asap. When you say you are writing it as a SAC file, what software are you using? Also, what version of SAC are you using? The version of SAC provided by IRIS (current version 101.4) can read either endian. I find that sactosac is a program (not command) in the MACSAC package, which is not the same as IRIS SAC. Even though it is no longer necessary, IRIS SAC comes with a utility program sacswap that can switch endian. The listed error message for the READ command in SAC are - 0101: opening file - 0108: File does not exist: - 0114: reading file From ism21.mohit at gmail.com Tue Jun 22 08:15:16 2010 From: ism21.mohit at gmail.com (mohit agarwal) Date: Tue, 22 Jun 2010 09:15:16 -0600 Subject: [SAC-HELP] sac-help Message-ID: Hello I am downloading the data for the GSN stations with the help of SOD but after looking at the seismogram , I noticed that I am getting variable length of seismogram. Can you please tell me "how can I solve this problem". Thanks Mohit -------------- next part -------------- An HTML attachment was scrubbed... URL: From savage at uri.edu Tue Jun 22 08:45:02 2010 From: savage at uri.edu (Brian Savage) Date: Tue, 22 Jun 2010 11:45:02 -0400 Subject: [SAC-HELP] HELP! In-Reply-To: References: <627888170.7634491277146855056.JavaMail.root@zcs.TCNJ.EDU> Message-ID: Dear Megan If you could either send me the sac file so I can examine it or run the following command % od -d -j 304 filename.sac | head -1 It should output something like this: 0000460 6 0 53191 65535 53191 65535 100 0 The first number you can ignore, but the second number is the version number, it should be 6 or less. od is "octal dump", -d indicates a decimal output, and -j is a jump to a number of bytes in the file. In this case 304 bytes (4 * 76). Thanks Brian Savage savage at uri.edu On Jun 21, 2010, at 4:44 PM, Arthur Snoke wrote: >> I'm having a SAC problem. I'm running a program to digitize paper >> seismograms. My digitization program saves the files I create >> as .SAC files. I got one digitized and saved it as .SAC but when I >> tried to read the file into SAC I got the following error: >> >> ERROR 1318: Header in disk file is out of date: myfile >> Header version number is incorrect. >> >> Header seems byte-swapped?byte-swap file and retry. >> >> I looked up sac help online and I got : http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.html >> but that didn't work =( SAC is telling me that sactosac -m is not >> a valid command. I would really appreciate any help/ideas asap. > > When you say you are writing it as a SAC file, what software are you > using? Also, what version of SAC are you using? The version of SAC > provided by IRIS (current version 101.4) can read either endian. I > find that sactosac is a program (not command) in the MACSAC package, > which is not the same as IRIS SAC. Even though it is no longer > necessary, IRIS SAC comes with a utility program sacswap that can > switch endian. > > The listed error message for the READ command in SAC are > > - 0101: opening file > - 0108: File does not exist: > - 0114: reading file > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help