-
Notifications
You must be signed in to change notification settings - Fork 3
/
hypoell-loc.sh
63 lines (46 loc) · 1.03 KB
/
hypoell-loc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# SCRIPT FOR RUNNING HYPOELLIPSE
# PHASE FILE
filepick=hypoel.pha
# VELOCITY FILE
filevel=${1}.prm
# STATION FILE
filesta=hypoel.sta
# $root.out : FINAL LOCATION FILE
# $root.sum : SUMMARY FILE
# $root.arc : POLARITIES
root=${1}
# PARAMETER FILE
filepar=default.cfg
# REFERNCE TIME
date=19800101
# CONTROL FILE
filecom=${1}.ctl
echo "stdin">$filecom
echo "y">>$filecom
echo $root>>$filecom
echo "stdout">>$filecom
echo "screen">>$filecom
echo "y">>$filecom
echo $root.sum>>$filecom
echo "y">>$filecom
echo $root.arc>>$filecom
echo "n">>$filecom
echo "n">>$filecom
# JUMT TO PARAMETER FILE
echo "jump" $filepar>>$filecom
# JUMT TO VELOCITY FILE
echo "jump" $filevel>>$filecom
# USED STATIONS
echo "begin station list +1" $date >>$filecom
# JUMT TO STATION FILE
echo "jump" $filesta >>$filecom
# USED PHASE
echo "arrival times next">>$filecom
# JUMT TO PHASE FILE
echo "jump" $filepick >>$filecom
# RUN HYPOELLIPSE
echo "hymain < $filecom 2>&1 >/dev/null" > ${1}_runHE
chmod +x ${1}_runHE
./${1}_runHE > $root.out
rm ./${1}_runHE