-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathnamelist_wrfvar.sh
executable file
·121 lines (117 loc) · 2.13 KB
/
namelist_wrfvar.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/bin/bash
. $CONFIG_FILE
cat << EOF
&wrfvar1
var4d=${var4d:-false},
var4d_bin=$((MINUTES_PER_SLOT*60)),
var4d_lbc=$VAR4D_LBC,
multi_inc=${multi_inc:-0},
print_detail_radar=false,
print_detail_xa=false,
print_detail_xb=false,
print_detail_obs=false,
print_detail_grad=false,
print_detail_parallel=false,
/
&wrfvar2
/
EOF
echo "&wrfvar3"
echo ob_format=2,
if [ ! -z $num_fgat_time ]; then echo num_fgat_time=$num_fgat_time,; fi
if [ ! -z $tot_en_size ]; then echo tot_en_size=$tot_en_size,; fi
echo "/"
cat << EOF
&wrfvar4
use_synopobs=$USE_SYNOPOBS,
use_shipsobs=$USE_SHIPSOBS,
use_metarobs=$USE_METAROBS,
use_soundobs=$USE_SOUNDOBS,
use_pilotobs=$USE_PILOTOBS,
use_airepobs=$USE_AIREPOBS,
use_geoamvobs=$USE_GEOAMVOBS,
use_polaramvobs=$USE_POLARAMVOBS,
use_bogusobs=$USE_BOGUSOBS,
use_buoyobs=$USE_BUOYOBS,
use_profilerobs=$USE_PROFILEROBS,
use_satemobs=$USE_SATEMOBS,
use_gpspwobs=$USE_GPSPWOBS,
use_gpsrefobs=$USE_GPSREFOBS,
use_qscatobs=$USE_QSCATOBS,
use_radarobs=$USE_RADAROBS,
/
&wrfvar5
check_max_iv=true,
put_rand_seed=false,
/
&wrfvar6
max_ext_its=${max_ext_its:-1},
ntmax=$NTMAX,
orthonorm_gradient=true,
outer_loop_restart=${outer_loop_restart:-false},
/
&wrfvar7
cv_options=$CV_OPTIONS,
je_factor=$JE_FACTOR,
var_scaling1=$VAR_SCALING1,
var_scaling2=$VAR_SCALING2,
var_scaling3=$VAR_SCALING3,
var_scaling4=$VAR_SCALING4,
var_scaling5=$VAR_SCALING5,
len_scaling1=$LEN_SCALING1,
len_scaling2=$LEN_SCALING2,
len_scaling3=$LEN_SCALING3,
len_scaling4=$LEN_SCALING4,
len_scaling5=$LEN_SCALING5,
/
&wrfvar8
/
&wrfvar9
/
&wrfvar10
/
&wrfvar11
cv_options_hum=1,
check_rh=0,
calculate_cg_cost_fn=false,
/
&wrfvar12
/
&wrfvar13
/
&wrfvar14
/
&wrfvar15
/
&wrfvar16
alphacv_method=$ALPHACV_METHOD,
ensdim_alpha=${ensdim_alpha:-0},
alpha_truncation=0,
alpha_corr_type=3,
alpha_corr_scale=900,
alpha_std_dev=1.0,
/
&wrfvar17
analysis_type="$analysis_type",
/
&wrfvar18
analysis_date="`wrf_time_string $time_window_min`.0000"
/
&wrfvar19
/
&wrfvar20
/
&wrfvar21
time_window_min="`wrf_time_string $time_window_min`.0000",
/
&wrfvar22
time_window_max="`wrf_time_string $time_window_max`.0000",
/
&perturbation
jcdfi_use=true,
jcdfi_diag=1,
jcdfi_penalty=1000,
/
&namelist_quilt
/
EOF