From kianji at yahoo.com Fri Oct 1 04:08:28 2010 From: kianji at yahoo.com (CATHERINE KIANJI) Date: Fri, 1 Oct 2010 04:08:28 -0700 (PDT) Subject: [SAC-HELP] poles and zeros Message-ID: <837587.27719.qm@web50806.mail.re2.yahoo.com> how to calculate poles and zeros regards gladys From Onur.Tan at mam.gov.tr Fri Oct 1 05:00:07 2010 From: Onur.Tan at mam.gov.tr (Onur Tan) Date: Fri, 1 Oct 2010 15:00:07 +0300 Subject: [SAC-HELP] poles and zeros In-Reply-To: <837587.27719.qm@web50806.mail.re2.yahoo.com> Message-ID: Hi, please give more detail. Do you want to find poles&zeros of an instrument? (you may contact its dealer) Or, do you want convert known poles&zeros for SAC-transfer usage? o. Dr. Onur TAN ---------------------------------------------- 40.7866N 29.4500E --------- T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s? TUBITAK Marmara Research Center, Earth and Marine Sciences Institute Gebze - Kocaeli - TURKEY On 01.10.2010 14:08, "CATHERINE KIANJI" wrote: how to calculate poles and zeros regards gladys _______________________________________________ sac-help mailing list sac-help at iris.washington.edu http://www.iris.washington.edu/mailman/listinfo/sac-help From Derek.Schutt at colostate.edu Fri Oct 1 07:19:24 2010 From: Derek.Schutt at colostate.edu (Derek Schutt) Date: Fri, 01 Oct 2010 08:19:24 -0600 Subject: [SAC-HELP] Sac tutorial In-Reply-To: References: Message-ID: <4CA5EDEC.8060606@Colostate.edu> On 09/30/2010 10:44 PM, MONTU GOGOI wrote: > Respected sir, > > Most humbly and respectfully I would like to inform > you that I,Mr Montu Gogoi a studend of computational > seismology(M.Tech)and I am a new user of the software SAC(seismic > analysis code).I try to learn this software but in many steps I haved > faced many problems and confusions.As a seismology student it is > compulsory for me and I must learn this.So I kindly request you that > if you have some materials and tutorials then please send to me. > > > Yours faithfully > > Mr Montu Gogoi > > Tezpur University > > Assam(India) > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help Dear Mr. Gogoi, My students like Zhagang Peng's SAC tutorial: http://geophysics.eas.gatech.edu/classes/SAC/ . And don't forget the SAC tutorial that is part of the documentation: http://www.iris.edu/software/sac/manual/tutorial.html Hope that helps. Best Regards, Derek -- -------------------- Derek Schutt Assistant Professor Departpment of Geosciences 309 Natural Resources Building Campus Delivery 1482 Fort Collins, CO 80525-1482 http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm 970-491-5786 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Onur.Tan at mam.gov.tr Fri Oct 1 09:04:08 2010 From: Onur.Tan at mam.gov.tr (Onur Tan) Date: Fri, 1 Oct 2010 19:04:08 +0300 Subject: [SAC-HELP] poles and zeros In-Reply-To: <706999.45490.qm@web50807.mail.re2.yahoo.com> Message-ID: Dear Catherine please look at these threats in April 2009: http://www.iris.washington.edu/pipermail/sac-help/2009-April/author.html o. Dr. Onur TAN ---------------------------------------------- 40.7866N 29.4500E --------- T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s? TUBITAK Marmara Research Center, Earth and Marine Sciences Institute Gebze - Kocaeli - TURKEY On 01.10.2010 16:56, "CATHERINE KIANJI" wrote: Thanks for your response I would like to convert known poles&zeros for SAC-transfer usage Regards Gladys --- On Fri, 10/1/10, Onur Tan wrote: > From: Onur Tan > Subject: Re: [SAC-HELP] poles and zeros > To: "Sac-Help" > Date: Friday, October 1, 2010, 4:00 PM > Hi, > > please give more detail. Do you want to find > poles&zeros of an instrument? (you may contact its > dealer) > > Or, do you want convert known poles&zeros for > SAC-transfer usage? > > o. > > > Dr. Onur TAN > ---------------------------------------------- 40.7866N > 29.4500E --------- > T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz > Bilimleri Enstit?s? > TUBITAK Marmara Research Center, Earth and Marine Sciences > Institute > Gebze - Kocaeli - TURKEY > > > > On 01.10.2010 14:08, "CATHERINE KIANJI" > wrote: > > how to calculate poles and zeros > > regards gladys > > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > From aslynx at gmail.com Fri Oct 1 10:55:35 2010 From: aslynx at gmail.com (Carmen Astrid Lopez) Date: Fri, 1 Oct 2010 12:55:35 -0500 Subject: [SAC-HELP] help Remover Instrumental Responses Message-ID: Hi All! I am using a SAC file download to wilbert, but it have IDEP = Unkwon. I need that IDEP = velocity, then I try to remove the instrument responses. First I download RESP file from IRIS RESP Service. I used this RESP file and command trasfer, but I obtain this in screen. SEISMIC ANALYSIS CODE [06/06/2005 (Version 100.1)] Copyright 1995 Regents of the University of California SAC> r 2009.302.11.02.28.3950.GB.DYA..BHZ.R.SAC SAC> trans from evalresp Extracting evresp response for DYA, BHZ... Station (DYA ), Channel (BHZ ) Calper is not available. Cannot tell if response is normalized, so transfer function will be used without scaling. Calib is not available. Cannot tell if scale factor has been applied on input, so transfer function will be used without scaling. Waveform multiplied by 1.000000 after deconvolution. Could anyone explain me the error? or Could anyone explain the correct form to use command trasfer?, please Regards, Astrid L?pez -------------- next part -------------- An HTML attachment was scrubbed... URL: From gdoublon at gmail.com Fri Oct 1 23:56:02 2010 From: gdoublon at gmail.com (J. Robert) Date: Sat, 02 Oct 2010 08:56:02 +0200 Subject: [SAC-HELP] SAC for Cygwin Message-ID: <4CA6D782.1010305@gmail.com> Hi, I tried to install the cygwin version of SAC. I installed first the cygwin readline and sunrpc packages. However the compilation fails with the following errors: --- In file included from ../../sac-101.4/src/bbs/getbbv.c:13: ../../sac-101.4/inc/dff.h:5:21: rpc/rpc.h: No such file or directory In file included from ../../sac-101.4/src/bbs/getbbv.c:13: ../../sac-101.4/inc/dff.h:219: error: parse error before "xdrs" make[1]: *** [bbs/getbbv.o] Error 1 make: *** [all-recursive] Error 1 --- Thanks you for your help, Jim From savage at uri.edu Sat Oct 2 04:46:16 2010 From: savage at uri.edu (Brian Savage) Date: Sat, 2 Oct 2010 07:46:16 -0400 Subject: [SAC-HELP] SAC for Cygwin In-Reply-To: <4CA6D782.1010305@gmail.com> References: <4CA6D782.1010305@gmail.com> Message-ID: <398CA8B5-E46D-4162-9635-8CFA2C30C9FA@uri.edu> There has recently been some issues with the latest version of SAC on Cygwin from the update and name change of the RPC library on this platform. If you encounter the problem below on Cygwin/Windows, please try % env CFLAGS="-I/usr/include/tirpc/" LIBS="-L/usr/lib/tirpc" ./configure % make This will be fixed soon. Brian savage at uri.edu On Oct 2, 2010, at 2:56 AM, J. Robert wrote: > Hi, > > I tried to install the cygwin version of SAC. > I installed first the cygwin readline and sunrpc packages. > However the compilation fails with the following errors: > --- > In file included from ../../sac-101.4/src/bbs/getbbv.c:13: > ../../sac-101.4/inc/dff.h:5:21: rpc/rpc.h: No such file or directory > In file included from ../../sac-101.4/src/bbs/getbbv.c:13: > ../../sac-101.4/inc/dff.h:219: error: parse error before "xdrs" > make[1]: *** [bbs/getbbv.o] Error 1 > make: *** [all-recursive] Error 1 > --- > > Thanks you for your help, > Jim > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > From payero at ollin.igeofcu.unam.mx Tue Oct 5 14:56:30 2010 From: payero at ollin.igeofcu.unam.mx (Juan S. Payero de =?iso-8859-1?Q?Jes=FAs?=) Date: Tue, 5 Oct 2010 16:56:30 -0500 (CDT) Subject: [SAC-HELP] WRITECSS error Message-ID: <50779.132.248.6.208.1286315790.squirrel@ollin.igeofcu.unam.mx> Dear: I'm using sac for short time. I'm reading three sac binay files and trying to write these with WRITECSS, it give me an: error 1385 that is not in sac-help. SAC> r a1 a2 a3 SAC> wcss a1_css a2_css a3_css ERROR 1385: No worksets in memory. or SAC> r a1 a2 a3 SAC> wcss ascii dir current a1_css a2_css a3_css ERROR 1385: No worksets in memory. can you help me? Thanks a lot. Juan Payero IGEF-UNAM Telf. (5255) 5622-4126 ext 135 (52155)2310-1163 cel DF, M?xico. Skype : payerojeju email alterno: juan_payero_dejesus at yahoo.com From Christina_Rau at brown.edu Fri Oct 8 06:56:33 2010 From: Christina_Rau at brown.edu (Christina Rau) Date: Fri, 8 Oct 2010 09:56:33 -0400 Subject: [SAC-HELP] Setting SAC Path Message-ID: Hi, I have finished building SAC on my Mac, and am now trying to set the path and other options. Using the instructions for bash this is what I get: gc156-crau:sac crau$ export SACHOME=/usr/local/sac gc156-crau:sac crau$ source ${SACHOME}/bin/sacinit.csh -bash: setenv: command not found -bash: setenv: command not found -bash: setenv: command not found -bash: setenv: command not found -bash: setenv: command not found -bash: setenv: command not found So I tried using csh and running sac: gc156-crau:sac crau$ csh [gc156-crau:/usr/local/sac] crau% setenv SACHOME /usr/local/sac [gc156-crau:/usr/local/sac] crau% source ${SACHOME}/bin/sacinit.csh [gc156-crau:/usr/local/sac] crau% sac WARNING: Number 108 /usr/local/jas/sac/aux/csspickpref . readcss will not read picks. ERROR: Number 901 in INITCOMLISTS. Problems opening Command List: /usr/local/jas/sac/aux/clstd -- Christina J. Rau Ph.D. Candidate Tectonophysics Research Group Dept. of Geological Sciences, Brown Univ. 324 Brook Street, Box 1846 Providence, RI 02912 -------------- next part -------------- An HTML attachment was scrubbed... URL: From savage at uri.edu Fri Oct 8 07:17:32 2010 From: savage at uri.edu (Brian Savage) Date: Fri, 8 Oct 2010 10:17:32 -0400 Subject: [SAC-HELP] Setting SAC Path In-Reply-To: References: Message-ID: <2ACE618E-6DDA-40FC-B25F-7D7E3E34BBFA@uri.edu> Dear Christina, I suspect if you look in the sacinit.csh file you will find the SACAUX variable set to "/usr/local/jas/sac/aux" or something similar. I am not sure how this got into the distribution but it appears to be from one of the developers. Either modify the sacinit.csh file or the sacinit.sh file in /usr/ local/sac/bin to point to the correct locations or copy the lines from the init files to your own .cshrc or .bashrc and then modify them to your correct location. From your initial commands it appears you are running sh or bash and you should be using the sacinit.sh not sacinit.csh. I hope this helps and we will get you SAC running on your system. Brian Savage savage at uri.edu On Oct 8, 2010, at 9:56 AM, Christina Rau wrote: > Hi, > I have finished building SAC on my Mac, and am now trying to set the > path and other options. Using the instructions for bash this is what > I get: > gc156-crau:sac crau$ export SACHOME=/usr/local/sac > gc156-crau:sac crau$ source ${SACHOME}/bin/sacinit.csh > -bash: setenv: command not found > -bash: setenv: command not found > -bash: setenv: command not found > -bash: setenv: command not found > -bash: setenv: command not found > -bash: setenv: command not found > > So I tried using csh and running sac: > gc156-crau:sac crau$ csh > [gc156-crau:/usr/local/sac] crau% setenv SACHOME /usr/local/sac > [gc156-crau:/usr/local/sac] crau% source ${SACHOME}/bin/sacinit.csh > [gc156-crau:/usr/local/sac] crau% sac > WARNING: Number 108 /usr/local/jas/sac/aux/csspickpref . readcss > will not read picks. > ERROR: Number 901 in INITCOMLISTS. > Problems opening Command List: /usr/local/jas/sac/aux/clstd > > > > -- > Christina J. Rau > Ph.D. Candidate > Tectonophysics Research Group > > Dept. of Geological Sciences, Brown Univ. > 324 Brook Street, Box 1846 > Providence, RI 02912 > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From yz at email.unc.edu Sun Oct 10 17:47:22 2010 From: yz at email.unc.edu (Yue Zhang) Date: Sun, 10 Oct 2010 20:47:22 -0400 Subject: [SAC-HELP] Could VB call SAC? Message-ID: <000001cb68dd$df037d00$9d0a7700$@email.unc.edu> I'm designing an executable program and hope that it can analyze the data through calling the functions in SAC. How could I get it? Thank you very much for your reply. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rebecca.Harrington at kit.edu Tue Oct 12 04:35:46 2010 From: Rebecca.Harrington at kit.edu (Rebecca Harrington) Date: Tue, 12 Oct 2010 13:35:46 +0200 Subject: [SAC-HELP] OAPF Message-ID: <4CB44812.4050509@kit.edu> I am trying to use the OAPF command to write an alphanumeric pick file, but the time format stored in the pick file does not seem to correspond to the format listed in the manual as far as I can tell. I am using the following commands: oapf name [filename] ppk absolute capf The time written to the pick file is given by: 200427214073319338804914073319 3388054 55.93 which should correspond to a pick at 5.93 sec in a file with beginning time of 17:22:50.103 on Sept. 28, 2004. Beyond the year and Julian day, the rest doesn't seem to be in GMT time. Am I misinterpreting something? Thanks much, Rebecca From Derek.Schutt at colostate.edu Tue Oct 12 15:38:33 2010 From: Derek.Schutt at colostate.edu (Derek Schutt) Date: Tue, 12 Oct 2010 16:38:33 -0600 Subject: [SAC-HELP] dealing with big-endian and little-endian data with SAC and sacswap In-Reply-To: <4BC6FBE7.6060900@auth.gr> References: <4BC6EB88.02B343.30629@m50-133.163.com> <4BC6FBE7.6060900@auth.gr> Message-ID: <4CB4E369.6030309@Colostate.edu> It's been a while since I worried about this, and I've screwed things up a bit. I requested some data from the DMC, using Standing Order for Data (SOD). It is big-endian. When I write a sac file on my x86 computer, the sac file seems to be in little-endian format (the native format); however, when I just write headers to the original sac file, the file stays in the big-endian format. I'd like all my data to be in one format, preferably the native, little-endian, format. I can use sacswap to change format, but it seems to work indiscriminantly on files, swapping them even if they are in the native format. So, I was wondering: 1) If there is any way to make sac write files in the same byte-order that the file was read in 2) is there a more elegant way to work with sacswap, to get it to only swap non-native byte order files. I think the mac version of sacswap does do this. I realize now I should have used the tag in my SOD request, and it's actually not to hard to retrace my steps and run sacswap on the files that need to be swapped. But I can't help if there is a more elegant way to do this... Thanks, Derek -- -------------------- Derek Schutt Assistant Professor Geosciences Department 309 Natural Resources Building Campus Delivery 1482 Fort Collins, CO 80525-1482 http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm 970-491-5786 From m.tchelo at gmail.com Wed Oct 13 07:06:00 2010 From: m.tchelo at gmail.com (Marcelo Bianchi) Date: Wed, 13 Oct 2010 16:06:00 +0200 Subject: [SAC-HELP] dealing with big-endian and little-endian data with SAC and sacswap In-Reply-To: <4CB4E369.6030309@Colostate.edu> References: <4BC6EB88.02B343.30629@m50-133.163.com> <4BC6FBE7.6060900@auth.gr> <4CB4E369.6030309@Colostate.edu> Message-ID: Hi You could take a look at a small program that I wrote that can do it for you. The name of the program is sacswapbyte. You can check it from my webpage ... http://sites.google.com/site/foo4funreborn/ >From this program you can pass in many files and say that I want that the output should be little or big and will find out wich files need to be converted and those that should not be changed. Also there are other tools (sactools) on my webpage for handling large amounts of sacdata in one run. Like make tables of header variables or renaming sac files ... well have a look ! regards, marcelo -- Mobile ~ +47 9080 6225 http://sites.google.com/site/foo4funreborn/ 2010/10/13 Derek Schutt > It's been a while since I worried about this, and I've screwed things up a > bit. > > I requested some data from the DMC, using Standing Order for Data (SOD). > It is big-endian. When I write a sac file on my x86 computer, the sac file > seems to be in little-endian format (the native format); however, when I > just write headers to the original sac file, the file stays in the > big-endian format. > > I'd like all my data to be in one format, preferably the native, > little-endian, format. I can use sacswap to change format, but it seems to > work indiscriminantly on files, swapping them even if they are in the native > format. > > So, I was wondering: > 1) If there is any way to make sac write files in the same byte-order > that the file was read in > 2) is there a more elegant way to work with sacswap, to get it to only > swap non-native byte order files. I think the mac version of sacswap does > do this. > > I realize now I should have used the tag in my SOD request, > and it's actually not to hard to retrace my steps and run sacswap on the > files that need to be swapped. But I can't help if there is a more elegant > way to do this... > > Thanks, > > Derek > > -- > -------------------- > Derek Schutt > Assistant Professor > Geosciences Department > 309 Natural Resources Building > Campus Delivery 1482 > Fort Collins, CO 80525-1482 > http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm > 970-491-5786 > > _______________________________________________ > 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 savage at uri.edu Wed Oct 13 07:18:26 2010 From: savage at uri.edu (Brian Savage) Date: Wed, 13 Oct 2010 10:18:26 -0400 Subject: [SAC-HELP] dealing with big-endian and little-endian data with SAC and sacswap In-Reply-To: <4CB4E369.6030309@Colostate.edu> References: <4BC6EB88.02B343.30629@m50-133.163.com> <4BC6FBE7.6060900@auth.gr> <4CB4E369.6030309@Colostate.edu> Message-ID: <7D47F914-66F6-4552-9FBE-66CE5974A77B@uri.edu> Derek, This is the second request for this feature recently and it should not take much to add in this type of functionality. It will most likely be designed as an option you would need to turn on, but this should. I will add this to my list of things to do. Brian On Oct 12, 2010, at 6:38 PM, Derek Schutt wrote: > It's been a while since I worried about this, and I've screwed > things up a bit. > > I requested some data from the DMC, using Standing Order for Data > (SOD). It is big-endian. When I write a sac file on my x86 > computer, the sac file seems to be in little-endian format (the > native format); however, when I just write headers to the original > sac file, the file stays in the big-endian format. > > I'd like all my data to be in one format, preferably the native, > little-endian, format. I can use sacswap to change format, but it > seems to work indiscriminantly on files, swapping them even if they > are in the native format. > > So, I was wondering: > 1) If there is any way to make sac write files in the same byte- > order that the file was read in > 2) is there a more elegant way to work with sacswap, to get it to > only swap non-native byte order files. I think the mac version of > sacswap does do this. > > I realize now I should have used the tag in my SOD > request, and it's actually not to hard to retrace my steps and run > sacswap on the files that need to be swapped. But I can't help if > there is a more elegant way to do this... > > Thanks, > > Derek > > -- > -------------------- > Derek Schutt > Assistant Professor > Geosciences Department > 309 Natural Resources Building > Campus Delivery 1482 > Fort Collins, CO 80525-1482 > http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm > 970-491-5786 > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > From Derek.Schutt at colostate.edu Wed Oct 13 08:12:03 2010 From: Derek.Schutt at colostate.edu (Derek Schutt) Date: Wed, 13 Oct 2010 09:12:03 -0600 Subject: [SAC-HELP] dealing with big-endian and little-endian data with SAC and sacswap In-Reply-To: <7D47F914-66F6-4552-9FBE-66CE5974A77B@uri.edu> References: <4BC6EB88.02B343.30629@m50-133.163.com> <4BC6FBE7.6060900@auth.gr> <4CB4E369.6030309@Colostate.edu> <7D47F914-66F6-4552-9FBE-66CE5974A77B@uri.edu> Message-ID: <4CB5CC43.9070901@Colostate.edu> Thanks Brian. I appreciate your efforts. -Derek On 10/13/2010 08:18 AM, Brian Savage wrote: > Derek, > > This is the second request for this feature recently and it should not > take much to add in this type of functionality. It will most likely be > designed as an option you would need to turn on, but this should. I > will add this to my list of things to do. > > Brian > > On Oct 12, 2010, at 6:38 PM, Derek Schutt wrote: > >> It's been a while since I worried about this, and I've screwed things >> up a bit. >> >> I requested some data from the DMC, using Standing Order for Data >> (SOD). It is big-endian. When I write a sac file on my x86 >> computer, the sac file seems to be in little-endian format (the >> native format); however, when I just write headers to the original >> sac file, the file stays in the big-endian format. >> >> I'd like all my data to be in one format, preferably the native, >> little-endian, format. I can use sacswap to change format, but it >> seems to work indiscriminantly on files, swapping them even if they >> are in the native format. >> >> So, I was wondering: >> 1) If there is any way to make sac write files in the same >> byte-order that the file was read in >> 2) is there a more elegant way to work with sacswap, to get it to >> only swap non-native byte order files. I think the mac version of >> sacswap does do this. >> >> I realize now I should have used the tag in my SOD >> request, and it's actually not to hard to retrace my steps and run >> sacswap on the files that need to be swapped. But I can't help if >> there is a more elegant way to do this... >> >> Thanks, >> >> Derek >> >> -- >> -------------------- >> Derek Schutt >> Assistant Professor >> Geosciences Department >> 309 Natural Resources Building >> Campus Delivery 1482 >> Fort Collins, CO 80525-1482 >> http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm >> 970-491-5786 >> >> _______________________________________________ >> sac-help mailing list >> sac-help at iris.washington.edu >> http://www.iris.washington.edu/mailman/listinfo/sac-help >> > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > -- -------------------- Derek Schutt Assistant Professor Geosciences Department 309 Natural Resources Building Campus Delivery 1482 Fort Collins, CO 80525-1482 http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm 970-491-5786 From Fatih.Sevim at mam.gov.tr Fri Oct 15 04:49:14 2010 From: Fatih.Sevim at mam.gov.tr (Fatih Sevim) Date: Fri, 15 Oct 2010 14:49:14 +0300 Subject: [SAC-HELP] using PDS command Message-ID: <9E88105FE4AC8C47BD6D00EB9831482F1AED9071FE@posta.mam.gov.tr> Hi, I want to calculate power density spectrum via "PDS" command but ? came up against "ERROR 5003: No correlation function calculated." I need your help. Best regards, Fatih. From lazki at squ.edu.om Sun Oct 17 00:28:13 2010 From: lazki at squ.edu.om (Ali Al-Lazki) Date: Sun, 17 Oct 2010 11:28:13 +0400 Subject: [SAC-HELP] phase picking and extraction macros Message-ID: Dear all, I seem to have lost my old macros! I am looking for two types of macros one that are used in routine picking of phase arrival times and the second in the extraction of phase and and header information from picked data sets, if you don't mind sharing your macros? basic, simple, sophisticated will do! Kind regards, Ali Al-Lazki Department of Earth Sciences College of Science P.O. Box 36 Postal Code 123 Alkhodh, Oman ________________________________________ From: sac-help-bounces at iris.washington.edu [sac-help-bounces at iris.washington.edu] On Behalf Of sac-help-request at iris.washington.edu [sac-help-request at iris.washington.edu] Sent: Friday, October 01, 2010 9:55 PM To: sac-help at iris.washington.edu Subject: sac-help Digest, Vol 61, Issue 1 Send sac-help mailing list submissions to sac-help at iris.washington.edu To subscribe or unsubscribe via the World Wide Web, visit http://www.iris.washington.edu/mailman/listinfo/sac-help or, via email, send a message with subject or body 'help' to sac-help-request at iris.washington.edu You can reach the person managing the list at sac-help-owner at iris.washington.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of sac-help digest..." Today's Topics: 1. Sac tutorial (MONTU GOGOI) 2. Re: Sac tutorial (Onur Tan) 3. poles and zeros (CATHERINE KIANJI) 4. Re: poles and zeros (Onur Tan) 5. Re: Sac tutorial (Derek Schutt) 6. Re: poles and zeros (Onur Tan) 7. help Remover Instrumental Responses (Carmen Astrid Lopez) ---------------------------------------------------------------------- Message: 1 Date: Fri, 1 Oct 2010 10:14:11 +0530 From: MONTU GOGOI Subject: [SAC-HELP] Sac tutorial To: sac-help at iris.washington.edu Message-ID: Content-Type: text/plain; charset="iso-8859-1" Respected sir, Most humbly and respectfully I would like to inform you that I,Mr Montu Gogoi a studend of computational seismology(M.Tech)and I am a new user of the software SAC(seismic analysis code).I try to learn this software but in many steps I haved faced many problems and confusions.As a seismology student it is compulsory for me and I must learn this.So I kindly request you that if you have some materials and tutorials then please send to me. Yours faithfully Mr Montu Gogoi Tezpur University Assam(India) -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Fri, 1 Oct 2010 09:13:34 +0300 From: Onur Tan Subject: Re: [SAC-HELP] Sac tutorial To: Sac-Help Message-ID: Content-Type: text/plain; charset="utf-8" Dear Montu The best way is the manual web pages : http://www.iris.edu/software/sac/manual.html On the other hand, the SAC team should give the manuals as zipped file for off-line usage. best regards onur Dr. Onur TAN ---------------------------------------------- 40.7866N 29.4500E --------- T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s? TUBITAK Marmara Research Center, Earth and Marine Sciences Institute Gebze - Kocaeli - TURKEY On 01.10.2010 07:44, "MONTU GOGOI" wrote: Respected sir, Most humbly and respectfully I would like to inform you that I,Mr Montu Gogoi a studend of computational seismology(M.Tech)and I am a new user of the software SAC(seismic analysis code).I try to learn this software but in many steps I haved faced many problems and confusions.As a seismology student it is compulsory for me and I must learn this.So I kindly request you that if you have some materials and tutorials then please send to me. Yours faithfully Mr Montu Gogoi Tezpur University Assam(India) ------------------------------ Message: 3 Date: Fri, 1 Oct 2010 04:08:28 -0700 (PDT) From: CATHERINE KIANJI Subject: [SAC-HELP] poles and zeros To: sac-help at iris.washington.edu Message-ID: <837587.27719.qm at web50806.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii how to calculate poles and zeros regards gladys ------------------------------ Message: 4 Date: Fri, 1 Oct 2010 15:00:07 +0300 From: Onur Tan Subject: Re: [SAC-HELP] poles and zeros To: Sac-Help Message-ID: Content-Type: text/plain; charset="utf-8" Hi, please give more detail. Do you want to find poles&zeros of an instrument? (you may contact its dealer) Or, do you want convert known poles&zeros for SAC-transfer usage? o. Dr. Onur TAN ---------------------------------------------- 40.7866N 29.4500E --------- T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s? TUBITAK Marmara Research Center, Earth and Marine Sciences Institute Gebze - Kocaeli - TURKEY On 01.10.2010 14:08, "CATHERINE KIANJI" wrote: how to calculate poles and zeros regards gladys _______________________________________________ sac-help mailing list sac-help at iris.washington.edu http://www.iris.washington.edu/mailman/listinfo/sac-help ------------------------------ Message: 5 Date: Fri, 01 Oct 2010 08:19:24 -0600 From: Derek Schutt Subject: Re: [SAC-HELP] Sac tutorial To: sac-help at iris.washington.edu Message-ID: <4CA5EDEC.8060606 at Colostate.edu> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" On 09/30/2010 10:44 PM, MONTU GOGOI wrote: > Respected sir, > > Most humbly and respectfully I would like to inform > you that I,Mr Montu Gogoi a studend of computational > seismology(M.Tech)and I am a new user of the software SAC(seismic > analysis code).I try to learn this software but in many steps I haved > faced many problems and confusions.As a seismology student it is > compulsory for me and I must learn this.So I kindly request you that > if you have some materials and tutorials then please send to me. > > > Yours faithfully > > Mr Montu Gogoi > > Tezpur University > > Assam(India) > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help Dear Mr. Gogoi, My students like Zhagang Peng's SAC tutorial: http://geophysics.eas.gatech.edu/classes/SAC/ . And don't forget the SAC tutorial that is part of the documentation: http://www.iris.edu/software/sac/manual/tutorial.html Hope that helps. Best Regards, Derek -- -------------------- Derek Schutt Assistant Professor Departpment of Geosciences 309 Natural Resources Building Campus Delivery 1482 Fort Collins, CO 80525-1482 http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm 970-491-5786 -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 6 Date: Fri, 1 Oct 2010 19:04:08 +0300 From: Onur Tan Subject: Re: [SAC-HELP] poles and zeros To: CATHERINE KIANJI Cc: Sac-Help Message-ID: Content-Type: text/plain; charset="utf-8" Dear Catherine please look at these threats in April 2009: http://www.iris.washington.edu/pipermail/sac-help/2009-April/author.html o. Dr. Onur TAN ---------------------------------------------- 40.7866N 29.4500E --------- T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s? TUBITAK Marmara Research Center, Earth and Marine Sciences Institute Gebze - Kocaeli - TURKEY On 01.10.2010 16:56, "CATHERINE KIANJI" wrote: Thanks for your response I would like to convert known poles&zeros for SAC-transfer usage Regards Gladys --- On Fri, 10/1/10, Onur Tan wrote: > From: Onur Tan > Subject: Re: [SAC-HELP] poles and zeros > To: "Sac-Help" > Date: Friday, October 1, 2010, 4:00 PM > Hi, > > please give more detail. Do you want to find > poles&zeros of an instrument? (you may contact its > dealer) > > Or, do you want convert known poles&zeros for > SAC-transfer usage? > > o. > > > Dr. Onur TAN > ---------------------------------------------- 40.7866N > 29.4500E --------- > T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz > Bilimleri Enstit?s? > TUBITAK Marmara Research Center, Earth and Marine Sciences > Institute > Gebze - Kocaeli - TURKEY > > > > On 01.10.2010 14:08, "CATHERINE KIANJI" > wrote: > > how to calculate poles and zeros > > regards gladys > > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > ------------------------------ Message: 7 Date: Fri, 1 Oct 2010 12:55:35 -0500 From: Carmen Astrid Lopez Subject: [SAC-HELP] help Remover Instrumental Responses To: sac-help at iris.washington.edu Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi All! I am using a SAC file download to wilbert, but it have IDEP = Unkwon. I need that IDEP = velocity, then I try to remove the instrument responses. First I download RESP file from IRIS RESP Service. I used this RESP file and command trasfer, but I obtain this in screen. SEISMIC ANALYSIS CODE [06/06/2005 (Version 100.1)] Copyright 1995 Regents of the University of California SAC> r 2009.302.11.02.28.3950.GB.DYA..BHZ.R.SAC SAC> trans from evalresp Extracting evresp response for DYA, BHZ... Station (DYA ), Channel (BHZ ) Calper is not available. Cannot tell if response is normalized, so transfer function will be used without scaling. Calib is not available. Cannot tell if scale factor has been applied on input, so transfer function will be used without scaling. Waveform multiplied by 1.000000 after deconvolution. Could anyone explain me the error? or Could anyone explain the correct form to use command trasfer?, please Regards, Astrid L?pez -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ sac-help mailing list sac-help at iris.washington.edu http://www.iris.washington.edu/mailman/listinfo/sac-help End of sac-help Digest, Vol 61, Issue 1 *************************************** From snoke at vt.edu Sun Oct 17 04:59:34 2010 From: snoke at vt.edu (Arthur Snoke) Date: Sun, 17 Oct 2010 07:59:34 -0400 (EDT) Subject: [SAC-HELP] using PDS command In-Reply-To: <9E88105FE4AC8C47BD6D00EB9831482F1AED9071FE@posta.mam.gov.tr> References: <9E88105FE4AC8C47BD6D00EB9831482F1AED9071FE@posta.mam.gov.tr> Message-ID: >From the SAC Help page for COR : This correlation function is used in the calculation of the spectral estimate. COR must therefore be executed before PDS, MLM, or MEM. We hope to review both the SPE and SSS subprocesses before the next release of SAC. I would appreciate any suggestions you or others on this list have regarding these sub-processes. One small change prompted by your question is to add the line to ERROR messages in pds.html regarding the one you cite. On Fri, 15 Oct 2010, Fatih Sevim wrote: > I want to calculate power density spectrum via "PDS" command but > ? came up against "ERROR 5003: No correlation function calculated." > I need your help. > > Best regards, > Fatih. From jattanayake at gmail.com Mon Oct 25 09:20:41 2010 From: jattanayake at gmail.com (Januka Attanayake) Date: Mon, 25 Oct 2010 12:20:41 -0400 Subject: [SAC-HELP] calling sac commands within shell scripts Message-ID: Greetings, I am trying to call sac within a shell script as follows. while read line do cd $line sac gawk '{print "macro ../sac_cut.macro"}' cd ../ done < folder_list.txt folder_list.txt holds the names of all the directory names that the script is suppose to look in. I see that sac is initiated but the problem is in executing commands within sac once it is initiated. I have tried several ways of doing that including printf and piping to sac with back quotes. Still I get the following error. SAC> readline: readline_callback_read_char() called with no handler! How should one execute sac commands within a shell script? I am using sac Version 101.3b Thanks a lot. Januka. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Derek.Schutt at colostate.edu Mon Oct 25 09:31:17 2010 From: Derek.Schutt at colostate.edu (Derek Schutt) Date: Mon, 25 Oct 2010 10:31:17 -0600 Subject: [SAC-HELP] calling sac commands within shell scripts In-Reply-To: References: Message-ID: <4CC5B0D5.3050300@Colostate.edu> Hi Januka, Here's one way to do it. This is from a bash script that invokes sac to change the "a" and "f" headers: echo -e "r $sacfile \n ch a $a_time \n ch F $F_time \n wh \n exit" | sac I'd bet there are much more elegant ways to do it too. -Derek On 10/25/2010 10:20 AM, Januka Attanayake wrote: > Greetings, > I am trying to call sac within a shell script as follows. > > while read line > do > cd $line > > sac > gawk '{print "macro ../sac_cut.macro"}' > > cd ../ > done < folder_list.txt > > > folder_list.txt holds the names of all the directory names that the > script is suppose to look in. > I see that sac is initiated but the problem is in executing commands > within sac once it is initiated. I have tried several ways of doing > that including printf and piping to sac with back quotes. Still I get > the following error. > > SAC> readline: readline_callback_read_char() called with no handler! > > How should one execute sac commands within a shell script? > > I am using sac Version 101.3b > > Thanks a lot. > > Januka. > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help -- -------------------- Derek Schutt Assistant Professor Geosciences Department 309 Natural Resources Building Campus Delivery 1482 Fort Collins, CO 80525-1482 http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm 970-491-5786 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jattanayake at yahoo.com Mon Oct 25 09:50:03 2010 From: jattanayake at yahoo.com (Januka Attanayake) Date: Mon, 25 Oct 2010 09:50:03 -0700 (PDT) Subject: [SAC-HELP] calling sac commands within shell scripts In-Reply-To: <4CC5B0D5.3050300@Colostate.edu> Message-ID: <770681.75898.qm@web55504.mail.re4.yahoo.com> Thanks Derek, I modified your command line as echo -e "macro ../sac_cut.macro \n exit" | sac and still get the same error: SAC> readline: readline_callback_read_char() called with no handler! Aborted (core dumped) cd: 25: can't cd to sac_cut.macro I am thinking macro isn't seen as a command within sac by echo. Thanks again! Serenity isn't freedom from the storm, but peace within the storm Januka Attanayake? Global Seismology & Economics The University of Connecticut Beach Hall - U2045 354, Mansfield Rd; Storrs, CT 06269 Tel :? 860 486 0475 (Office) ????????? 860 486 3914 (Lab - P405) URL:?http://sites.google.com/site/janukaattanayake/ --- On Mon, 10/25/10, Derek Schutt wrote: From: Derek Schutt Subject: Re: [SAC-HELP] calling sac commands within shell scripts To: sac-help at iris.washington.edu, jattanayake at gmail.com Date: Monday, October 25, 2010, 12:31 PM Hi Januka, Here's one way to do it.?? This is from a bash script that invokes sac to change the "a" and "f" headers: echo -e "r $sacfile \n ch a $a_time \n ch F $F_time \n wh \n exit" | sac I'd bet there are much more elegant ways to do it too.?? -Derek On 10/25/2010 10:20 AM, Januka Attanayake wrote: Greetings, I am trying to call sac within a shell script as follows. while read line do ??? cd $line ?? ? ? ??? sac ??? ??? gawk '{print "macro ../sac_cut.macro"}' ??? cd ../ done < folder_list.txt folder_list.txt holds the names of all the directory names that the script is suppose to look in. I see that sac is initiated but the problem is in executing commands within sac once it is initiated. I have tried several ways of doing that including printf and piping to sac with back quotes. Still I get the following error. SAC> readline: readline_callback_read_char() called with no handler! How should one execute sac commands within a shell script? I am using sac Version 101.3b Thanks a lot. Januka. _______________________________________________ sac-help mailing list sac-help at iris.washington.edu http://www.iris.washington.edu/mailman/listinfo/sac-help -- -------------------- Derek Schutt Assistant Professor Geosciences Department 309 Natural Resources Building Campus Delivery 1482 Fort Collins, CO 80525-1482 http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm 970-491-5786 -----Inline Attachment Follows----- _______________________________________________ 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 jattanayake at gmail.com Mon Oct 25 11:21:44 2010 From: jattanayake at gmail.com (Januka Attanayake) Date: Mon, 25 Oct 2010 14:21:44 -0400 Subject: [SAC-HELP] calling sac commands within shell scripts In-Reply-To: References: Message-ID: Hi again, I've had a couple of responses from the members, thanks for your time! However, none of them worked. I still get the same error. I am calling sac within a while read line loop. Should there be a special way of calling sac and executing commands if I do it in a loop? I haven't come across this problem with other programs like GMT and taup at all. my error msg: SAC> readline: readline_callback_read_char() called with no handler! and bash script: while read line do cd $line sac gawk '{print "macro ../sac_cut.macro"}' cd ../ done < folder_list.txt commands I've tried so far: (1) echo -e "macro ../sac_cut.macro" | sac (2) sac << EOF and ! macro ../sac_cut.macro EOF and ! ==> doesn't work within a while loop (3) printf "macro ../sac_cut.macro" | sac (4) echo "macro ../sac_cut.macro" | sac Thanks again ! Januka. On Mon, Oct 25, 2010 at 12:20 PM, Januka Attanayake wrote: > Greetings, > I am trying to call sac within a shell script as follows. > > while read line > do > cd $line > > sac > gawk '{print "macro ../sac_cut.macro"}' > > cd ../ > done < folder_list.txt > > > folder_list.txt holds the names of all the directory names that the script > is suppose to look in. > I see that sac is initiated but the problem is in executing commands within > sac once it is initiated. I have tried several ways of doing that including > printf and piping to sac with back quotes. Still I get the following error. > > SAC> readline: readline_callback_read_char() called with no handler! > > How should one execute sac commands within a shell script? > > I am using sac Version 101.3b > > Thanks a lot. > > Januka. > -- "Nothing can start to exist nor can cease to exist, only transformation is possible" Januka Attanayake Solid Earth Geophysics & Economics University of Connecticut Beach Hall U-2045 354,Mansfield Rd; Storrs.CT 06269 Tel: +1 860 486 0475 (Office) +1 860 486 3914 (Lab - P405) URL: http://sites.google.com/site/janukaattanayake/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Onur.Tan at mam.gov.tr Mon Oct 25 11:45:29 2010 From: Onur.Tan at mam.gov.tr (Onur Tan) Date: Mon, 25 Oct 2010 21:45:29 +0300 Subject: [SAC-HELP] calling sac commands within shell scripts In-Reply-To: Message-ID: Hi , This Cshell script may run (I cannot test at this time) . the file a.csh : ---- foreach dir ( ` cat folder_list.txt ` ) # note that there two backquotes cd $dir echo macro ../sac_cut.macro > macro.tmp # the last line of the sac_cut.macro must be ?exit? to quit from sac sac < macro.tmp cd .. end \rm tmp ---- to run type > csh a.csh Dr. Onur TAN ---------------------------------------------- 40.7866N 29.4500E --------- T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s? TUBITAK Marmara Research Center, Earth and Marine Sciences Institute Gebze - Kocaeli - TURKEY On 25.10.2010 21:21, "Januka Attanayake" wrote: Hi again, I've had a couple of responses from the members, thanks for your time! However, none of them worked. I still get the same error. I am calling sac within a while read line loop. Should there be a special way of calling sac and executing commands if I do it in a loop? I haven't come across this problem with other programs like GMT and taup at all. my error msg: SAC> readline: readline_callback_read_char() called with no handler! and bash script: while read line do cd $line sac gawk '{print "macro ../sac_cut.macro"}' cd ../ done < folder_list.txt commands I've tried so far: (1) echo -e "macro ../sac_cut.macro" | sac (2) sac << EOF and ! macro ../sac_cut.macro EOF and ! ==> doesn't work within a while loop (3) printf "macro ../sac_cut.macro" | sac (4) echo "macro ../sac_cut.macro" | sac Thanks again ! Januka. On Mon, Oct 25, 2010 at 12:20 PM, Januka Attanayake wrote: Greetings, I am trying to call sac within a shell script as follows. while read line do cd $line sac gawk '{print "macro ../sac_cut.macro"}' cd ../ done < folder_list.txt folder_list.txt holds the names of all the directory names that the script is suppose to look in. I see that sac is initiated but the problem is in executing commands within sac once it is initiated. I have tried several ways of doing that including printf and piping to sac with back quotes. Still I get the following error. SAC> readline: readline_callback_read_char() called with no handler! How should one execute sac commands within a shell script? I am using sac Version 101.3b Thanks a lot. Januka. From invite+pmd1imw_ at facebookmail.com Thu Oct 28 21:12:06 2010 From: invite+pmd1imw_ at facebookmail.com (Bishwa Jyoti Das) Date: Thu, 28 Oct 2010 21:12:06 -0700 Subject: [SAC-HELP] Bishwa Jyoti wants you to join Facebook Message-ID: Hi Sac-help, I set up a Facebook profile where I can post my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile. Thanks, Bishwa Jyoti To sign up for Facebook, follow the link below: http://www.facebook.com/p.php?i=768007140&k=3YM3YYV6UT6CXJMARJ422US22VAF2U6&r Already have an account? Add this email address to your account: http://www.facebook.com/n/?merge_accounts.php&e=sac-help%40iris.washington.edu&c=26eac8a9bd2c3d75c7e2cb58ea7a7e4c ======================================= sac-help at iris.washington.edu was invited to join Facebook by Bishwa Jyoti Das. If you do not wish to receive this type of email from Facebook in the future, please follow the link below to unsubscribe. http://www.facebook.com/o.php?k=22fdd6&u=1478913827&mid=33446c4G58266f23G0G8 Facebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ekent at gfz-potsdam.de Fri Oct 29 01:59:19 2010 From: ekent at gfz-potsdam.de (Tuna Eken) Date: Fri, 29 Oct 2010 10:59:19 +0200 Subject: [SAC-HELP] A question regarding sac ERROR 907 ... Message-ID: An HTML attachment was scrubbed... URL: From jattanayake at yahoo.com Fri Oct 29 06:41:06 2010 From: jattanayake at yahoo.com (Januka Attanayake) Date: Fri, 29 Oct 2010 06:41:06 -0700 (PDT) Subject: [SAC-HELP] A question regarding sac ERROR 907 ... In-Reply-To: Message-ID: <512714.81646.qm@web55503.mail.re4.yahoo.com> Here's how I would do it with saclst in bash. kztime=`saclst kztime f sacfile_name | gawk '{print $2}'` Januka. Serenity isn't freedom from the storm, but peace within the storm Januka Attanayake? Global Seismology & Economics The University of Connecticut Beach Hall - U2045 354, Mansfield Rd; Storrs, CT 06269 Tel :? 860 486 0475 (Office) ????????? 860 486 3914 (Lab - P405) URL:?http://sites.google.com/site/janukaattanayake/ --- On Fri, 10/29/10, Tuna Eken wrote: From: Tuna Eken Subject: [SAC-HELP] A question regarding sac ERROR 907 ... To: sac-help at iris.washington.edu Cc: ekent at gfz-potsdam.de Date: Friday, October 29, 2010, 4:59 AM Dear SAC Users, I have recently faced with a problem when processing on the data header of one binary sac data file. To sum it up, when I read and want to list header info, I have got the following type of error and the rest : ?ERROR? 907: Bad time field entry detected: 22 8 26 1432 ?????? NPTS = 360000 ????????? B = 0.000000e+00 ????????? E = 3.599990e+03 ???? IFTYPE = TIME SERIES FILE ?ERROR??? 0:????? LEVEN = TRUE ????? DELTA = 1.000000e-02 ?????? IDEP = VELOCITY (NM/SEC) ???? DEPMIN = 5.701760e+05 ???? DEPMAX = 5.752970e+05 ?ERROR??? 0:???? DEPMEN = 5.730679e+05 ???? KZDATE = MAR 30 (089), 2007 ???? IZTYPE = BEGIN TIME ????? KSTNM = IPA2 ????? CMPAZ = 9.000000e+01 ?ERROR??? 0:???? CMPINC = 9.000000e+01 ............................................................ ....... Here at that point KZTIME information is important for my processing and most probably due to that sort of error I can't see and grep it later on. Is there anyone who has idea how to get the data header fixed or any trick on how to get KZTIME information despite this error? I appreciate any suggestion on this matter ... best regards tuna -- #????#????#????#????#????#????# Tuna Eken Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ Telegrafenberg, D 409 D-14473 Potsdam/Germany Tel.: +49 331 288-1322 Fax: +49 331 288-1328 E-Mail: ekent at gfz-potsdam.de -----Inline Attachment Follows----- _______________________________________________ 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 savage at uri.edu Fri Oct 29 07:37:05 2010 From: savage at uri.edu (Brian Savage) Date: Fri, 29 Oct 2010 10:37:05 -0400 Subject: [SAC-HELP] A question regarding sac ERROR 907 ... In-Reply-To: <512714.81646.qm@web55503.mail.re4.yahoo.com> References: <512714.81646.qm@web55503.mail.re4.yahoo.com> Message-ID: <929B633F-5393-4167-A210-C68C64EDD3D5@uri.edu> To follow up: The values from kztime should be: 0 <= hour <= 24 0 <= min <= 59 0 <= sec <= 59 0 <= msec <= 999 > ERROR 907: Bad time field entry detected: 22 8 26 1432 From your output the hour = 22, min = 8, sec = 26 and the msec = 1432 millisecond (1432) is outside of the allowed range, so the 907 Error is occurring. The output for the error message *should*, and will be better in the future. I believe your seconds should be at 27 and msec should be 432. You might also encounter this error when reading a SEGY file with a illegal time value. Brian Savage savage at uri.edu On Oct 29, 2010, at 9:41 AM, Januka Attanayake wrote: > Here's how I would do it with saclst in bash. > > kztime=`saclst kztime f sacfile_name | gawk '{print $2}'` > > Januka. > > Serenity isn't freedom from the storm, but peace within the storm > Januka Attanayake > Global Seismology & Economics > The University of Connecticut > Beach Hall - U2045 > 354, Mansfield Rd; > Storrs, CT 06269 > Tel : 860 486 0475 (Office) > 860 486 3914 (Lab - P405) > URL: http://sites.google.com/site/janukaattanayake/ > > > > > > > > --- On Fri, 10/29/10, Tuna Eken wrote: > > From: Tuna Eken > Subject: [SAC-HELP] A question regarding sac ERROR 907 ... > To: sac-help at iris.washington.edu > Cc: ekent at gfz-potsdam.de > Date: Friday, October 29, 2010, 4:59 AM > > Dear SAC Users, > > I have recently faced with a problem when processing on the data > header of one binary sac data file. > To sum it up, when I read and want to list header info, I have got > the following type of error and > the rest : > > ERROR 907: Bad time field entry detected: 22 8 26 1432 > NPTS = 360000 > B = 0.000000e+00 > E = 3.599990e+03 > IFTYPE = TIME SERIES FILE > ERROR 0: LEVEN = TRUE > DELTA = 1.000000e-02 > IDEP = VELOCITY (NM/SEC) > DEPMIN = 5.701760e+05 > DEPMAX = 5.752970e+05 > ERROR 0: DEPMEN = 5.730679e+05 > KZDATE = MAR 30 (089), 2007 > IZTYPE = BEGIN TIME > KSTNM = IPA2 > CMPAZ = 9.000000e+01 > ERROR 0: CMPINC = 9.000000e+01 > > ............................................................ > ....... > > Here at that point KZTIME information is important for my processing > and most probably due > to that sort of error I can't see and grep it later on. Is there > anyone who has idea how to get > the data header fixed or any trick on how to get KZTIME information > despite this error? > > I appreciate any suggestion on this matter ... > > > > best regards > > tuna > > -- > # # # # # # # > Tuna Eken > > Helmholtz-Zentrum Potsdam > Deutsches GeoForschungsZentrum GFZ > > Telegrafenberg, D 409 > D-14473 Potsdam/Germany > Tel.: +49 331 288-1322 > Fax: +49 331 288-1328 > E-Mail: ekent at gfz-potsdam.de > > -----Inline Attachment Follows----- > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From ekent at gfz-potsdam.de Fri Oct 29 08:19:01 2010 From: ekent at gfz-potsdam.de (Tuna Eken) Date: Fri, 29 Oct 2010 17:19:01 +0200 Subject: [SAC-HELP] A question regarding sac ERROR 907 ... In-Reply-To: <929B633F-5393-4167-A210-C68C64EDD3D5@uri.edu> References: <512714.81646.qm@web55503.mail.re4.yahoo.com> <929B633F-5393-4167-A210-C68C64EDD3D5@uri.edu> Message-ID: An HTML attachment was scrubbed... URL: From p_palacios_ec at hotmail.com Sat Oct 30 05:02:23 2010 From: p_palacios_ec at hotmail.com (Pablo Palacios) Date: Sat, 30 Oct 2010 07:02:23 -0500 Subject: [SAC-HELP] calling sac commands within shell scripts In-Reply-To: References: , Message-ID: Hi all, Frequently I have used this instruction within or not of a loop: sac << EOF macro ../sac_cut.macro EOF EOF (end of file, or what ever other string) is used to identify or close the end of sac (or other program like matlab or R) intructions. Between sac</dev/null macro ../sac_cut.macro EOF If you want extract results to a file: sac << EOF>my.file macro ../sac_cut.macro EOF regards, P. Date: Mon, 25 Oct 2010 14:21:44 -0400 From: jattanayake at gmail.com To: sac-help at iris.washington.edu Subject: Re: [SAC-HELP] calling sac commands within shell scripts Hi again, I've had a couple of responses from the members, thanks for your time! However, none of them worked. I still get the same error. I am calling sac within a while read line loop. Should there be a special way of calling sac and executing commands if I do it in a loop? I haven't come across this problem with other programs like GMT and taup at all. my error msg: SAC> readline: readline_callback_read_char() called with no handler! and bash script: while read line do cd $line sac gawk '{print "macro ../sac_cut.macro"}' cd ../ done < folder_list.txt commands I've tried so far: (1) echo -e "macro ../sac_cut.macro" | sac (2) sac << EOF and ! macro ../sac_cut.macro EOF and ! ==> doesn't work within a while loop (3) printf "macro ../sac_cut.macro" | sac (4) echo "macro ../sac_cut.macro" | sac Thanks again ! Januka. On Mon, Oct 25, 2010 at 12:20 PM, Januka Attanayake wrote: Greetings, I am trying to call sac within a shell script as follows. while read line do cd $line sac gawk '{print "macro ../sac_cut.macro"}' cd ../ done < folder_list.txt folder_list.txt holds the names of all the directory names that the script is suppose to look in. I see that sac is initiated but the problem is in executing commands within sac once it is initiated. I have tried several ways of doing that including printf and piping to sac with back quotes. Still I get the following error. SAC> readline: readline_callback_read_char() called with no handler! How should one execute sac commands within a shell script? I am using sac Version 101.3b Thanks a lot. Januka. -- "Nothing can start to exist nor can cease to exist, only transformation is possible" Januka Attanayake Solid Earth Geophysics & Economics University of Connecticut Beach Hall U-2045 354,Mansfield Rd; Storrs.CT 06269 Tel: +1 860 486 0475 (Office) +1 860 486 3914 (Lab - P405) URL: http://sites.google.com/site/janukaattanayake/ _______________________________________________ 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 ralph at eri.ucsb.edu Sun Oct 31 12:40:22 2010 From: ralph at eri.ucsb.edu (Ralph J Archuleta) Date: Sun, 31 Oct 2010 12:40:22 -0700 Subject: [SAC-HELP] Pdf of SAC Manual Message-ID: I would like to get a pdf of the SAC manual. Where can I download it? -- Ralph J. Archuleta Professor and Chair Department of Earth Science & Earth Research Institute University of California, Santa Barbara Santa Barbara, CA 93106-9630 Phone: (805) 893-8441 FAX: (805) 893-2314 Email: ralph at eri.ucsb.edu or archuleta at geol.ucsb.edu ? ? ? ? ? ? ? ? ? ? ? ? ? ? Please note new email address: ralph at eri.ucsb.edu Institute for Crustal Studies merged with another Institute at UCSB