-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathinsitu_salt_profile_argo.yaml.j2
More file actions
237 lines (220 loc) · 5.7 KB
/
insitu_salt_profile_argo.yaml.j2
File metadata and controls
237 lines (220 loc) · 5.7 KB
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
- obs space:
name: {{observation_from_jcb}}
obsdatain:
engine:
type: H5File
obsfile: "{{marine_obsdatain_path}}/{{marine_obsdatain_prefix}}{{observation_from_jcb}}{{marine_obsdatain_suffix}}"
missing file action: warn
obsgrouping:
group variables: [latitude, longitude, dateTime]
sort variable: depth
sort group: MetaData
sort order: ascending
obsdataout:
engine:
type: H5File
obsfile: "{{marine_obsdataout_path}}/{{marine_obsdataout_prefix}}{{observation_from_jcb}}{{marine_obsdataout_suffix}}"
simulated variables: [salinity]
observed variables: [salinity]
io pool:
max pool size: 1
{% if marine_letkf_app | default(false) %}
distribution:
name: Halo
halo size: {{ marine_letkf_dist_halo_size }}
{% endif %}
obs operator:
name: VertInterp
observation alias file: ./obsop_name_map.yaml
vertical coordinate: sea_water_depth
observation vertical coordinate: depth
interpolation method: linear
obs error:
covariance model: diagonal
obs pre filters:
# Pre-filters credits to Kriti Bhargava
# Global range test
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 2.0
maxvalue: 41.0
# Regional range test
# Red Sea
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 2.0
maxvalue: 41.0
where:
- variable:
name: MetaData/latitude
minvalue: 10
maxvalue: 30
- variable:
name: MetaData/longitude
minvalue: 30
maxvalue: 45
# Mediterranean Sea
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 2.0
maxvalue: 40.0
where:
- variable:
name: MetaData/latitude
minvalue: 30
maxvalue: 40
- variable:
name: MetaData/longitude
minvalue: -6
maxvalue: 40
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 2.0
maxvalue: 40.0
where:
- variable:
name: MetaData/latitude
minvalue: 40
maxvalue: 41.5
- variable:
name: MetaData/longitude
minvalue: 20
maxvalue: 30
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 2.0
maxvalue: 40.0
where:
- variable:
name: MetaData/latitude
minvalue: 40
maxvalue: 46
- variable:
name: MetaData/longitude
minvalue: 0
maxvalue: 20
# Northwestern shelves
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 0.0
maxvalue: 37.0
where:
- variable:
name: MetaData/latitude
minvalue: 50
maxvalue: 60
- variable:
name: MetaData/longitude
minvalue: -20
maxvalue: 10
# Southwestern shelves
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 0.0
maxvalue: 38
where:
- variable:
name: MetaData/latitude
minvalue: 25
maxvalue: 50
- variable:
name: MetaData/longitude
minvalue: -30
maxvalue: 0
# Arctic
- filter: Bounds Check
filter variables:
- name: salinity
minvalue: 2.0
maxvalue: 40.0
where:
- variable:
name: MetaData/latitude
minvalue: 60
obs prior filters:
- filter: Domain Check
where:
- variable:
name: GeoVaLs/sea_area_fraction
value: is_valid
minvalue: 0.5
# Reject obs where MetaData/depth > GeoVaLs/sea_floor_depth_below_sea_surface - maxvalue
- filter: Bounds Check
filter variables:
- name: salinity
test variables:
- name: ObsFunction/Arithmetic
options:
variables: [MetaData/depth, GeoVaLs/sea_floor_depth_below_sea_surface]
coefs: [1.0, -1.0] # depth - sea_floor_depth_below_sea_surface
maxvalue: -100.0 # i.e., depth - sea_floor_depth_below_sea_surface <= 0
# Reject stair-step profiles (rounded values)
- filter: Create Diagnostic Flags
filter variables:
- name: salinity
flags:
- name: ProfileSpike
initial value: false
- name: ProfileStep
initial value: false
- filter: Spike and Step Check
independent: MetaData/depth
dependent: ObsValue/salinity
count spikes: false
count steps: true
tolerance:
nominal value: 0.05 # tune: < 0.1 if obs rounded to 0.1
action:
name: reject
obs post filters:
# Reject profiles with large differences from background
- filter: Profile Background Check
filter variables:
- name: salinity
absolute threshold: 0.5
# Reject obs that are 5PSU away from the background
- filter: Background Check
filter variables:
- name: salinity
absolute threshold: 5.0
# Force constant observation error everywhere
- filter: Perform Action
filter variables:
- name: salinity
action:
name: assign error
error parameter: 0.05
# Linear decay from surface to 2000m depth:
# - minimum error of 0.1K at 2000m (and below)
# - maximum error of 1.0K at surface
# original error is rescaled and added to reflect the out of window error
- filter: Perform Action
where:
- variable:
name: MetaData/depth
maxvalue: 2000.0
action:
name: assign error
error function:
name: ObsFunction/Arithmetic
options:
variables: [MetaData/depth, ObsError/salinity]
# sigo_total = 0.5 + (-0.00045)*depth + 0.1*sigo_original
coefs: [-0.00025, 0.1]
intercept: 0.5
{% if marine_letkf_app | default(false) %}
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
{% endif %}