-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmy_rsam.sh
executable file
·48 lines (36 loc) · 994 Bytes
/
my_rsam.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
#!/bin/bash
#run by crontab to make 10 min rsam files
function usage(){
cat <<EOF
Usage: $0 [Options]
Options:
-h Show this message.
-d Pass a different date using the format yyyymmdd
EOF
}
date=`date -u +%Y%m%d`
# Processing command line options
while [ $# -gt 0 ]
do
case "$1" in
-d) date="$2";shift;;
-h) usage; exit 0;;
-*) usage; exit 1;;
*) break;;
esac
shift
done
echo processing date: $date
#WSRZ.10-HHZ.RT
rsam_fdsn.py WSRZ.10-HHZ.NZ ./sds $date /workdir resp bp 2 5
#WIZ.10-HHZ.RT
rsam_fdsn.py WIZ.10-HHZ.NZ ./sds $date /workdir resp bp 2 5
#MAVZ.10-HHZ.CH
rsam_fdsn.py MAVZ.10-HHZ.NZ ./sds $date /workdir resp bp 1 4
#TRVZ.10-HHZ.CH
rsam_fdsn.py TRVZ.10-HHZ.NZ ./sds $date /workdir resp bp 1 4
#WHVZ.10-HHZ.CH
rsam_fdsn.py WHVZ.10-HHZ.NZ ./sds $date /workdir resp bp 1 4
#RAR.10-BHZ.IU
#geonet has no response data for RAR
rsam_fdsn.py RAR.10-BHZ.IU ./sds $date /workdir noresp bp 1.5 6