|
|
Comments |
| #!/bin/csh -f
# picksetup2 10/09/00 C.A. Langston # This script facilitates phase picking
on data and synthetics
if ($#argv != 5) then
# Environment for directory structure setenv CHUCKBIN '/space/langston/ts3/bin'
cd $RUKDAT
echo -n "Paste in the name:"
# Get reference model seismogram if ($dname =~ *[z]) then
if ($dname =~ *[t]) then
if($dname =~ "mtan"*) then
if($dname =~ "rung"*) then
if($dname =~ "tund"*) then
if($dname =~ "pand"*) then
if($dname =~ "uram"*) then
if($dname =~ "inza"*) then
if($dname =~ "mitu"*) then
if($dname =~ "puge"*) then
if($dname =~ "goma"*) then
if($dname =~ "mbwe"*) then
if($dname =~ "sing"*) then
if($dname =~ "mtor"*) then
if($dname =~ "baso"*) then
if($dname =~ "kond"*) then
if($dname =~ "kiba"*) then
if($dname =~ "tara"*) then
if($dname =~ "kibe"*) then
if($dname =~ "komo"*) then
if($dname =~ "long"*) then
if($dname =~ "hale"*) then
echo "Copy name for reference model seismogram:"
setenv REFDIR $MODEL/"mod"$1
# have data and synthetic seismogram names at this point # Set up SAC macro file for reading data and synthetic
files
cd $PHASE echo "r " $RUKDAT"/"$dname > pick.macro
echo "qdp off" >> pick.macro # Set up picking window echo "bd x" >> pick.macro
# Setup some blackboard variables for gftype
and phase picks
echo 'sc echo "'$dname' %xloc1% %xloc2% %xloc3% %xloc4%
%xloc5% %xloc6%" >> time.picks' >> pick.macro
# File has been setup echo "The sac macro has been built for this seismogram."
exit
|
five synthetic seismograms are going to be compared to
a data seismogram
locate all the stuff that is needed
Matlab was used to actually perform the inversion
interactive cutting and pasting of filenames in a directory
figure out the filename of the reference model seismogram
There were 20 stations
The "echo" command in UNIX is invaluable in creating macro
files
"pick.macro" is being built. Phasepick2 will use
it.
These variables will contain the amplitude and time picks
Wow! "echo" is being used to call "echo" within
SAC via the pick.macro. This confuses even me. Note that the
picks will go into a UNIX file called "time.picks".
Tell the user to run phasepick. |
After all of this, phasepick2 is invoked.
|
|
Comments |
| #!/bin/csh -f
# phasepick2 10/09/00
C.A. Langston
# This script facilitates phase picking
on data and synthetics
# Run sac and get data into window echo "Pick the data arrival of interest first"
$SACDIR/bin/sac2000 < pick.macro exit
|
All it does is to run SAC. A graphics window comes up and you use ppk to pick times. |