Skip to content

Commit a075cc9

Browse files
authored
Add jinja2 logic to each obs space to toggle use of ob inflation (NOAA-EMC#568)
Add jinja2 logic to each obs space YAML to toggle the use of ob inflation. It is off by default. This will be helpful in the future if we ever do any obs error tuning.
1 parent e86fb8d commit a075cc9

62 files changed

Lines changed: 243 additions & 88 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

parm/jcb-rdas/observations/atmosphere/adpsfc_airTemperature_181.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
145145
errors: [1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056, 1.5056]
146146

147+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
147148
# Reduce observation error and turn off ObsErrorFactorPressureCheck (l_gsd_terrain_match_surfTobs=.true., l_sfcobserror_ramp_t=.true.,)
148149
- filter: Perform Action
149150
filter variables:
@@ -212,6 +213,7 @@
212213
maxvalue: 10000.0
213214
- variable: ObsType/airTemperature
214215
is_in: 181
216+
{% endif %} # END use_error_inflation
215217

216218
# Bounds Check (ObsError)
217219
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_airTemperature_183.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
145145
errors: [2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349, 2.6349]
146146

147+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
147148
# # Reduce observation error and turn off ObsErrorFactorPressureCheck (l_gsd_terrain_match_surfTobs=.true., l_sfcobserror_ramp_t=.true.,)
148149
# - filter: Perform Action
149150
# filter variables:
@@ -212,6 +213,7 @@
212213
maxvalue: 10000.0
213214
- variable: ObsType/airTemperature
214215
is_in: 183
216+
{% endif %} # END use_error_inflation
215217

216218
# Bounds Check (ObsError)
217219
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_airTemperature_187.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
145145
errors: [2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585, 2.2585]
146146

147+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
147148
# Reduce observation error and turn off ObsErrorFactorPressureCheck (l_gsd_terrain_match_surfTobs=.true., l_sfcobserror_ramp_t=.true.,)
148149
- filter: Perform Action
149150
filter variables:
@@ -212,6 +213,7 @@
212213
maxvalue: 10000.0
213214
- variable: ObsType/airTemperature
214215
is_in: 187
216+
{% endif %} # END use_error_inflation
215217

216218
# Bounds Check (ObsError)
217219
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_specificHumidity_181.yaml.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,18 @@
131131
action:
132132
name: assign error
133133
error function:
134+
{% if use_error_inflation | default(true) %}
134135
name: ObsFunction/ObsErrorModelStepwiseLinear
135-
#name: ObsFunction/ObsErrorModelHumidity
136+
{% else %}
137+
name: ObsFunction/ObsErrorModelHumidity
138+
{% endif %}
136139
options:
137140
xvar:
138141
name: MetaData/pressure
139142
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
140143
errors: [0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912]
141144

145+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
142146
# Error inflation based on pressure check (setupq.f90) -- if this is off, use ObsFunction/ObsErrorModelHumidity
143147
- filter: Perform Action
144148
udescriptor: "error_inflation_pressure_check"
@@ -199,6 +203,7 @@
199203
maxvalue: 10000.0
200204
- variable: ObsType/specificHumidity
201205
is_in: 181
206+
{% endif %} # END use_error_inflation
202207

203208
# Bounds Check (ObsError)
204209
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_specificHumidity_183.yaml.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,18 @@
131131
action:
132132
name: assign error
133133
error function:
134+
{% if use_error_inflation | default(true) %}
134135
name: ObsFunction/ObsErrorModelStepwiseLinear
135-
#name: ObsFunction/ObsErrorModelHumidity
136+
{% else %}
137+
name: ObsFunction/ObsErrorModelHumidity
138+
{% endif %}
136139
options:
137140
xvar:
138141
name: MetaData/pressure
139142
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
140143
errors: [0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912]
141144

145+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
142146
# Error inflation based on pressure check (setupq.f90) -- if this is off, use ObsFunction/ObsErrorModelHumidity
143147
- filter: Perform Action
144148
udescriptor: "error_inflation_pressure_check"
@@ -199,6 +203,7 @@
199203
maxvalue: 10000.0
200204
- variable: ObsType/specificHumidity
201205
is_in: 183
206+
{% endif %} # END use_error_inflation
202207

203208
# Bounds Check (ObsError)
204209
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_specificHumidity_187.yaml.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,18 @@
131131
action:
132132
name: assign error
133133
error function:
134+
{% if use_error_inflation | default(true) %}
134135
name: ObsFunction/ObsErrorModelStepwiseLinear
135-
#name: ObsFunction/ObsErrorModelHumidity
136+
{% else %}
137+
name: ObsFunction/ObsErrorModelHumidity
138+
{% endif %}
136139
options:
137140
xvar:
138141
name: MetaData/pressure
139142
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
140143
errors: [0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912, 0.05912]
141144

145+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
142146
# Error inflation based on pressure check (setupq.f90) -- if this is off, use ObsFunction/ObsErrorModelHumidity
143147
- filter: Perform Action
144148
udescriptor: "error_inflation_pressure_check"
@@ -199,6 +203,7 @@
199203
maxvalue: 10000.0
200204
- variable: ObsType/specificHumidity
201205
is_in: 187
206+
{% endif %} # END use_error_inflation
202207

203208
# Bounds Check (ObsError)
204209
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_stationPressure_181.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
141141
errors: [53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11]
142142

143+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
143144
# Error inflation based on pressure check (setupps.f90)
144145
- filter: Perform Action
145146
udescriptor: "error_inflation_pressure_check"
@@ -199,6 +200,7 @@
199200
maxvalue: 10000.0
200201
- variable: ObsType/stationPressure
201202
is_in: 181
203+
{% endif %} # END use_error_inflation
202204

203205
# Bounds Check (ObsError)
204206
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_stationPressure_187.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
141141
errors: [53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 53.89, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11, 1E11]
142142

143+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
143144
# Error inflation based on pressure check (setupps.f90)
144145
- filter: Perform Action
145146
udescriptor: "error_inflation_pressure_check"
@@ -199,6 +200,7 @@
199200
maxvalue: 10000.0
200201
- variable: ObsType/stationPressure
201202
is_in: 187
203+
{% endif %} # END use_error_inflation
202204

203205
# Bounds Check (ObsError)
204206
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_winds_281.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
146146
errors: [1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874]
147147

148+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
148149
# Error inflation (windEastward) based on pressure check (setupw.f90)
149150
- filter: Perform Action
150151
udescriptor: "error_inflation_pressure_check"
@@ -248,6 +249,7 @@
248249
maxvalue: 5000.0
249250
- variable: ObsType/windEastward
250251
is_in: 281
252+
{% endif %} # END use_error_inflation
251253

252254
# Bounds Check (ObsError)
253255
- filter: Bounds Check

parm/jcb-rdas/observations/atmosphere/adpsfc_winds_284.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
xvals: [110000, 105000, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 7500, 5000, 4000, 3000, 2000, 1000, 500, 400, 300, 200, 100, 0]
146146
errors: [1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874, 1.5874]
147147

148+
{% if use_error_inflation | default(true) %} # BEGIN use_error_inflation
148149
# Error inflation (windEastward) based on pressure check (setupw.f90)
149150
- filter: Perform Action
150151
udescriptor: "error_inflation_pressure_check"
@@ -248,6 +249,7 @@
248249
maxvalue: 5000.0
249250
- variable: ObsType/windEastward
250251
is_in: 284
252+
{% endif %} # END use_error_inflation
251253

252254
# Bounds Check (ObsError)
253255
- filter: Bounds Check

0 commit comments

Comments
 (0)