-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path3dvar_lowres.yml
313 lines (294 loc) · 8.66 KB
/
3dvar_lowres.yml
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
# common filters used later on
_: &land_mask
filter: Domain Check
where:
- variable: {name: GeoVaLs/sea_area_fraction}
minvalue: 0.5
cost function:
cost type: 3D-Var
time window:
begin: 2018-04-14T00:00:00Z
length: P2D
analysis variables: &soca_an_vars
- sea_ice_area_fraction
- sea_ice_thickness
- sea_ice_snow_thickness
- sea_water_salinity
- sea_water_potential_temperature
- sea_surface_height_above_geoid
- net_downwelling_shortwave_radiation
- upward_latent_heat_flux_in_air
- upward_sensible_heat_flux_in_air
- net_downwelling_longwave_radiation
- friction_velocity_over_water
geometry:
geom_grid_file: data_generated/gridgen/soca_gridspec.72x35x25.nc
mom6_input_nml: data_static/72x35x25/input.nml
fields metadata: data_static/fields_metadata.yml
background:
read_from_file: 1
basename: data_static/72x35x25/restarts/
ocn_filename: MOM.res.nc
ice_filename: cice.res.nc
sfc_filename: sfc.res.nc
date: &bkg_date 2018-04-15T00:00:00Z
state variables:
- sea_ice_area_fraction
- sea_ice_thickness
- sea_ice_snow_thickness
- sea_water_salinity
- sea_water_potential_temperature
- sea_surface_height_above_geoid
- sea_water_cell_thickness
- net_downwelling_shortwave_radiation
- upward_latent_heat_flux_in_air
- upward_sensible_heat_flux_in_air
- net_downwelling_longwave_radiation
- friction_velocity_over_water
- ocean_mixed_layer_thickness
- sea_water_depth
background error:
covariance model: SABER
change background resolution: true
saber central block:
saber block name: diffusion
read:
groups:
# NOTE, the lower resolution files are used here
- variables:
- sea_water_potential_temperature
- sea_water_salinity
horizontal:
filepath: data_generated/parameters_diffusion_lowres/hz_smaller
vertical:
levels: 25
filepath: data_generated/parameters_diffusion_lowres/vt_5lvls
- variables: [sea_surface_height_above_geoid]
horizontal:
filepath: data_generated/parameters_diffusion_lowres/hz_smaller
saber outer blocks:
- saber block name: SOCABkgErrFilt
ocean_depth_min: 1000 # [m]
rescale_bkgerr: 1.0
efold_z: 2500.0 # [m]
- saber block name: SOCAParametricOceanStdDev
temperature:
sst:
filepath: data_static/godas_sst_bgerr.nc
variable: sst_bgerr
unbalanced salinity: {} # use default values
unbalanced ssh: {} # use default values
other variables:
- variable: sea_ice_area_fraction
min: 0.1
- variable: sea_ice_thickness
min: 10.0
- variable: eastward_sea_water_velocity
fraction of background: 0.2
- variable: northward_sea_water_velocity
fraction of background: 0.2
- variable: net_downwelling_shortwave_radiation
fraction of background: 0.1
- variable: upward_latent_heat_flux_in_air
fraction of background: 0.1
- variable: upward_sensible_heat_flux_in_air
fraction of background: 0.1
- variable: net_downwelling_longwave_radiation
fraction of background: 0.1
- variable: friction_velocity_over_water
fraction of background: 0.1
linear variable change:
input variables: *soca_an_vars
output variables: *soca_an_vars
linear variable changes:
- linear variable change name: BalanceSOCA
kst:
dsdtmax: 0.1
dsdzmin: 3.0e-6
dtdzmin: 1.0e-6
nlayers: 999
ksshts:
nlayers: 10
# NOTE not using dcdt, because i was too lazy to convert the file to low res
# dcdt:
# filename: data_static/36x17x25/dcdt.nc
# name: dcdt
observations:
observers:
- obs space:
name: CoolSkin
obsdataout:
engine:
type: H5File
obsfile: data_output/sst_coolskin.nc
obsdatain:
engine:
type: H5File
obsfile: data_static/obs/sst.nc
simulated variables: [seaSurfaceTemperature]
obs operator:
name: CoolSkin
obs error:
covariance model: diagonal
- obs space:
name: SeaSurfaceTemp
obsdataout:
engine:
type: H5File
obsfile: data_output/sst.nc
obsdatain:
engine:
type: H5File
obsfile: data_static/obs/sst.nc
simulated variables: [seaSurfaceTemperature]
obs operator:
name: Identity
observation alias file: testinput/obsop_name_map.yml
obs error:
covariance model: diagonal
obs filters:
- *land_mask
- filter: Thinning
amount: 0.1
random seed: 0
- obs space:
name: SeaSurfaceSalinity
obsdataout:
engine:
type: H5File
obsfile: data_output/sss.nc
obsdatain:
engine:
type: H5File
obsfile: data_static/obs/sss.nc
simulated variables: [seaSurfaceSalinity]
obs operator:
name: Identity
observation alias file: testinput/obsop_name_map.yml
obs error:
covariance model: diagonal
obs filters:
- filter: Domain Check
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 1500e3
- filter: Domain Check
where:
- variable: {name: GeoVaLs/sea_surface_temperature}
minvalue: 15
- obs space:
name: ADT
obsdataout:
engine:
type: H5File
obsfile: data_output/adt.nc
obsdatain:
engine:
type: H5File
obsfile: data_static/obs/adt.nc
simulated variables: [absoluteDynamicTopography]
obs operator:
name: ADT
obs error:
covariance model: diagonal
obs filters:
- *land_mask
- filter: Bounds Check
minvalue: -2.0
maxvalue: 2.0
- filter: Perform Action
action:
name: assign error
error function:
name: ObsFunction/LinearCombination
options:
variables: [GeoVaLs/mesoscale_representation_error,
ObsError/absoluteDynamicTopography]
coefs: [1.0,
1.0]
- obs space:
name: InsituTemperature
obsdataout:
engine:
type: H5File
obsfile: data_output/prof_T.nc
obsdatain:
engine:
type: H5File
obsfile: data_static/obs/prof.nc
simulated variables: [waterTemperature]
obs operator:
name: InsituTemperature
obs error:
covariance model: diagonal
obs filters:
- *land_mask
- filter: Background Check
threshold: 5
- obs space:
name: InsituSalinity
obsdataout:
engine:
type: H5File
obsfile: data_output/prof_S.nc
obsdatain:
engine:
type: H5File
obsfile: data_static/obs/prof.nc
simulated variables: [salinity]
obs operator:
name: VertInterp
observation alias file: testinput/obsop_name_map.yml
vertical coordinate: sea_water_depth
observation vertical coordinate: depth
interpolation method: linear
obs error:
covariance model: diagonal
obs filters:
- *land_mask
- obs space:
name: SeaIceFraction
obsdataout:
engine:
type: H5File
obsfile: data_output/icec.nc
obsdatain:
engine:
type: H5File
obsfile: data_static/obs/icec.nc
simulated variables: [seaIceFraction]
obs operator:
name: Identity
observation alias file: testinput/obsop_name_map.yml
obs error:
covariance model: diagonal
obs filters:
- *land_mask
variational:
minimizer:
algorithm: RPCG
iterations:
# NOTE, the lower resolution files are used here
- geometry:
geom_grid_file: data_static/36x17x25/soca_gridspec.nc
mom6_input_nml: data_static/36x17x25/input.nml
fields metadata: data_static/fields_metadata.yml
ninner: 5
gradient norm reduction: 1e-15
test: on
online diagnostics:
write increment: true
increment:
state component:
datadir: data_output
date: *bkg_date
exp: 3dvar_lowres.iter1
type: incr
output:
datadir: data_output
exp: 3dvar_lowres
type: an
test:
reference filename: testref/3dvar_lowres.test
test output filename: testoutput/3dvar_lowres.test
float relative tolerance: 2e-4