-
Notifications
You must be signed in to change notification settings - Fork 0
/
driver.csh
executable file
·91 lines (77 loc) · 1.61 KB
/
driver.csh
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/tcsh
#set ogrid = 'fv_0.9x1.25'
#set ogrid = 'ne120pg3'
set ogrid = 'ne30pg3'
set ogrid = 'geos_fv_c90'
#set band = {'high_pass' 'beta','gamma'}
set band = 'high_pass'
set case = 'v3_0_3_'$ogrid'_'$band
# Set some defaults
if ( $ogrid == 'geos_fv_c48' ) then
endif
if ( $band == 'high_pass' ) then
#all bands passed
if ( $ogrid == 'fv_0.9x1.25' ) then
set Co=60
set Fi=1
set Nsw=42
endif
if ( $ogrid == 'ne30pg3' ) then
set Co=60
set Fi=1
set Nsw=42
endif
if ( $ogrid == 'ne120pg3' ) then
set Co=16
set Fi=1
set Nsw=12
endif
if ( $ogrid == 'geos_fv_c90' ) then
set Co=48
set Fi=1
set Nsw=34
endif
if ( $ogrid == 'geos_fv_c180' ) then
set Co=32
set Fi=1
set Nsw=22
endif
if ( $ogrid == 'geos_fv_c360' ) then
set Co=16
set Fi=1
set Nsw=12
endif
if ( $ogrid == 'geos_fv_c720' ) then
set Co=8
set Fi=1
set Nsw=6
endif
if ( $ogrid == 'geos_fv_c1440' ) then
set Co=4
set Fi=1
set Nsw=4
endif
endif
if ( $band == 'beta' ) then
#band passed "meso-beta"
if ( $ogrid == 'fv_0.9x1.25' ) then
set Co=60
set Fi=8
set Nsw=42
endif
endif
if ( $band == 'gamma' ) then
#high passed "meso-gamma"
if ( $ogrid == 'fv_0.9x1.25' ) then
set Co=14
set Fi=1
set Nsw=10
endif
endif
echo "Running band="$band
echo "Coarse radius="$Co
echo "fine radius="$Fi
echo "output grid="$ogrid
touch ../log/"Doing_this__Co"$Co"_Fi"$Fi"_Nsw"$Nsw"_grid_"$ogrid"_in__"$case
./create_topo.csh $ogrid $Co $Fi $Nsw $case
exit