Enhancements Bug Fixes330

Introduction

The purpose of this page is to notify users of the Computer Program in Seismology (CPS) package of repairs or extensions made to the code. Whenever this page is updated, the down loadable version of CPS is updated at the download FTP site.

Enhancements to Version 3.30 code

April 9, 2008

March 31, 2008

Hudson, J. A. (1969). A quantitative evaluation of seismic signals at teleseismic distances - II. Body waves and surface waves from an extended source, Geophys. J. Roy. astr. Soc. 18, 353-370.

March 14, 2008

February 8, 2008

January 28, 2008

January 22, 2008

January 17, 2008

January 10, 2008

January 3, 2008

A detailed tutorial on teleseismic synthetics and source inversion must be prepared.

This update changes the following programs: sdisp96, sregn96 and slegn96 in PROGRAMS.330/VOLIII/src, srfdis96, srfdrr96 and srfdrl96 in PROGRAMS.330/VOLIV/src, and hspec96 in PROGRAMS.330/VOLVI/src. Note hspec96 was modified on January 14, 2008 to correctly handle the source and receiver depth insertion for the flattening. The use fo the reference depth still needs work to handle atmospheric layers about the surface.

November 17, 2007

November 9, 2007

October 21. 2007

Hacked a fix for the distance computation used in gsac (gsac_subs.c) and udelaz.  The problem was that if the event - station latitude/longitude pair differed in coordinates by 0.0001 degree or less, then the computed distance in kilometers was incorrect because of roundoff error of the angles used for the elliptic integrals. The artifice used for distances less than 1.0 km, is to use the spherical relation  delkm = 6371.003 * delradian  for the short distances.

October 19. 2007

October 04, 2007

A problem with the distance/azimuth computations in gsac  was noticed in the process of computing epicentral distances less than 1 km.  This problem will also affect udelaz. This is currently under investigation.

August 30, 2007

August 19, 2007


> sac2000
 SEISMIC ANALYSIS CODE [8/8/2001 (Version 00.59.44)]
 Copyright 1995 Regents of the University of California

SAC> r ../*.sac
../imp.sac ...nimp.sac
SAC> w append .s
../imp.sac.s ...nimp.sac.s
SAC> ls
SAC> r
../imp.sac ...nimp.sac
SAC> w prepend p.
p.../imp.sac ...nimp.sac
 ERROR  101: opening file
SAC>                                     

GSAC - Computer Programs in Seismology [V1.1.19 01 AUG 2007]
       Copyright 2004, 2005, 2006, 2007 R. B. Herrmann
GSAC> r ../*.sac
../imp.sac ../nimp.sac
GSAC> w append .s
imp.sac.s nimp.sac.s   [Note write in local directory not original ]
GSAC> r
../imp.sac ../nimp.sac
GSAC> w prepend p.    [Note write in local directory not original - note Sac2000 ]
p.imp.sac p.nimp.sac      [cannot prepend in parent directory ]
GSAC> w append .S prepend P.   [Note write in local directory not original ]
P.imp.sac.S P.nimp.sac.S
GSAC> ls                      [show what was created in the current directory]
imp.sac.s  nimp.sac.s  p.imp.sac  P.imp.sac.S  p.nimp.sac  P.nimp.sac.S

One major difference is that although a  'w'  under both sac2000 and gsac will overwrite the original file in the upper directory, the gsac append and prepend will create files in the current directory.  Because gsac strips off the leading directory path prior to implementing the prepend command, this operation will work.

August 16, 2007

August 14, 2007

August 1, 2007

July 16, 2007

July 1, 2007

                ppk pq    or      ppk pquality

This is functionally similar to the previously introduced  'ppk quality'  except that the purpose is to simultaneously define a useful trace and to reset the P-time. For my source inversion, I set the theoretical P-time using the AK135 predicted times.  This is OK for source inversion since the inversion code permits a simple waveform time shift. However for broadband depth or energy determination, it is necessary to start at the P time.  To speed up the review, I added this new option. So now move the crosshair to the P-wave first arrival, and then click any mouse button. Simultaneously the P-arrival time is reset and the trace is marked as one to be used (IHDR20 is set to +1).



April 23, 2007

March 31, 2007

March 19, 2007

March 15, 2007

February 22. 2007

for i in *sac
do
GCARC=`saclhdr -GCARC $i`
EVDP=`saclhdr -EVDP $i`
A=`time96 -M ${MODEL} -GCARC ${GCARC} -T -EVDP ${EVDP}`
T0=`time96 -M ${MODEL} -GCARC ${GCARC} -T -EVDP ${EVDP} -SV`
echo ${GCARC} ${EVDP} ${A} ${T0}
gsac << EOF
rh $i
synchronize O
ch A ${A} T0 ${T0} T1 ${T0}
wh
quit
EOF
done

The 'synchronize O' is used to reset the time stamp so that 'O' , the offset of the origin time with respect to the reference time, is zero. In this case then the 'A' will be the travel time of the P first arrival.

February 20. 2007

February 8, 2007

January 24, 2007

timmod96 -TIMEP pfile
timmod96 -TIMES sfile

where pfile or sfile are ASCII files with a one distance – time pair per line, e.g.,

124.454140 20.464310
238.482346 35.048897
145.274033 24.015045
350.404083 48.721909

which can be created from the DIST and A (for P) sac header values through a loop

for i in *Z
do
saclhdr -NL -DIST -A >> ptime
done

This option permits plotting measured first arrivals on the same plot as the model predicted values

January 13, 2007

January 3, 2007

January 3, 2007

January 3, 2007

December 28, 2006

              triangle width 1.0
          is not the same as two commands
               boxcar width 1.0
               boxcar width 1.0
          even though this should be true by virtue of the convolution theorem.

December 15, 2006

December 12, 2006

November 8, 2006

October 18, 2006

October 14, 2006

October 1, 2006

September 16, 2006

     #!/bin/sh
     #####
     #    generate a pulse and low pass filter it
     #####
     gsac << EOF
     #####
     #        generate a pulse
     #####
          fg triangle delta 0.05 npts 1024
                  #        lowpass at 1 Hz
                  ##### 
                  lp c 1 n 2
                  #####
                  #         save as the file LP.sac
                  #####
                  w LP .sac  # a comment can be placed here too
                  quit 
     EOF  

August 20, 2006



August 8, 2006

August 8, 2006

August 4, 2006

June 16, 2006

June 10, 2006

May 27, 2006

April 26, 2006

March 19, 2006

February 27, 2006

February 27, 2006

January 3, 2006

December 14, 2005

September 25, 2005

August 10, 2005

August 3, 2005

June 30, 2005

February 27, 2006

March 19, 2006

June 16, 2005

March 23, 2005

February 11, 2005

February 5, 2005

January 31, 2005



TO BE DONE