|
|
Comments |
| #!/bin/csh -f
# data_model_plot # build SAC macros and run SAC to construct three
component
# C.A. Langston 10/31/00
if ($#argv != 4) then
# Environment for directory structure setenv CHUCKBIN '/space/langston/ts3/bin'
set MOD = "mod"$1
# make sure that the distance header variable is set in the model cd $MODDIR
# Get reference model seismogram set sname = `$CSHELL/filename.csh $2 z` # build the plot macro file echo 'bd sgf' > datsyn.plot.macro
set sname = `$CSHELL/filename.csh $2 r` echo 'macro datasynplot.macro ' $2 $RUKDAT'/'$2'.d.r '$sname' 2 ' $3 $4 >> datsyn.plot.macro set sname = `$CSHELL/filename.csh $2 t` echo 'macro datasynplot.macro ' $2 $RUKDAT'/'$2'.d.t '$sname'
3 ' $3 $4 >> datsyn.plot.macro
$SACDIR/bin/sac2000 < datsyn.plot.macro sgftops f001.sgf $2'.plot.ps' 1 y
|
The "echo" command in UNIX is invaluable in creating macro
files
|