Skip to content

Commit

Permalink
Add diagnostic flags to the snow DA jcb yamls (#62)
Browse files Browse the repository at this point in the history
This PR adds the diagnostic flags to the jcb yamls for the in-situ snow
observations. In addition, this PR updates the yamls by 1) re-organizing
the order of the UFO filters and 2) adding several filters to
synchronize with the offline workflow.
  • Loading branch information
jiaruidong2017 authored Dec 31, 2024
1 parent d750383 commit bca7454
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 28 deletions.
115 changes: 101 additions & 14 deletions observations/snow/sfcsno.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@
# Observation Filters (QC)
# ------------------------
obs pre filters:
- filter: Create Diagnostic Flags
flags:
- name: missing_snowdepth
initial value: false
- name: missing_elevation
initial value: false
- name: temporal_thinning
initial value: false
- name: invalid_snowdepth
initial value: false
- name: invalid_elevation
initial value: false
- name: land_check
initial value: false
- name: landice_check
initial value: false
- name: elevation_bkgdiff
initial value: false
- name: rejectlist
initial value: false
- name: background_check
initial value: false
- name: buddy_check
initial value: false
- filter: Perform Action
filter variables:
- name: totalSnowDepth
Expand All @@ -44,53 +68,110 @@
- name: BkgError/totalSnowDepth_background_error
type: float
value: 30.0
- filter: Domain Check
where:
- variable:
name: ObsValue/totalSnowDepth
value: is_valid
actions:
- name: set
flag: missing_snowdepth
ignore: rejected observations
- name: reject
- filter: Domain Check
where:
- variable:
name: MetaData/stationElevation
value: is_valid
actions:
- name: set
flag: missing_elevation
ignore: rejected observations
- name: reject
- filter: Temporal Thinning
min_spacing: '{{ window_length }}'
seed_time: '{{ snow_background_time_iso }}'
category_variable:
name: MetaData/stationIdentification
actions:
- name: set
flag: temporal_thinning
ignore: rejected observations
- name: reject
obs prior filters:
- filter: Bounds Check
filter variables:
- name: totalSnowDepth
minvalue: 0.0
maxvalue: 20000.0
action:
name: reject
- filter: Domain Check
where:
- variable:
name: MetaData/stationElevation
value: is_valid
actions:
- name: set
flag: invalid_snowdepth
ignore: rejected observations
- name: reject
- filter: Domain Check # land only
where:
- variable:
name: GeoVaLs/slmsk
minvalue: 0.5
maxvalue: 1.5
actions:
- name: set
flag: land_check
ignore: rejected observations
- name: reject
- filter: Domain Check
where:
- variable:
name: MetaData/stationElevation
minvalue: -200.0
maxvalue: 9900.0
actions:
- name: set
flag: invalid_elevation
ignore: rejected observations
- name: reject
- filter: RejectList # no land-ice
where:
- variable:
name: GeoVaLs/vtype
minvalue: 14.5
maxvalue: 15.5
actions:
- name: set
flag: landice_check
ignore: rejected observations
- name: reject
- filter: Difference Check # elevation check
reference: MetaData/stationElevation
value: GeoVaLs/filtered_orography
threshold: 200.
actions:
- name: set
flag: elevation_bkgdiff
ignore: rejected observations
- name: reject
- filter: BlackList
where:
- variable:
name: MetaData/stationIdentification
is_in: [71120,71397,71621,71727,71816]
size where true: 5
actions:
- name: set
flag: rejectlist
ignore: rejected observations
- name: reject
obs post filters:
- filter: Background Check # gross error check
filter variables:
- name: totalSnowDepth
threshold: 6.25
action:
name: reject
- filter: Temporal Thinning
min_spacing: '{{ window_length }}'
seed_time: '{{ snow_background_time_iso }}'
category_variable:
name: MetaData/stationIdentification
actions:
- name: set
flag: background_check
ignore: rejected observations
- name: reject
- filter: Met Office Buddy Check
filter variables:
- name: totalSnowDepth
Expand All @@ -114,3 +195,9 @@
damping_factor_1: 1.0
damping_factor_2: 1.0
background_error_group: BkgError
actions:
- name: set
flag: buddy_check
ignore: rejected observations
- name: reject

108 changes: 94 additions & 14 deletions observations/snow/snocvr_snow.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@
# Observation Filters (QC)
# ------------------------
obs pre filters:
- filter: Create Diagnostic Flags
flags:
- name: missing_snowdepth
initial value: false
- name: missing_elevation
initial value: false
- name: temporal_thinning
initial value: false
- name: invalid_snowdepth
initial value: false
- name: invalid_elevation
initial value: false
- name: land_check
initial value: false
- name: landice_check
initial value: false
- name: elevation_bkgdiff
initial value: false
- name: background_check
initial value: false
- name: buddy_check
initial value: false
- filter: Perform Action
filter variables:
- name: totalSnowDepth
Expand All @@ -43,47 +65,99 @@
- name: BkgError/totalSnowDepth_background_error
type: float
value: 30.0
- filter: Domain Check
where:
- variable:
name: ObsValue/totalSnowDepth
value: is_valid
actions:
- name: set
flag: missing_snowdepth
ignore: rejected observations
- name: reject
- filter: Domain Check
where:
- variable:
name: MetaData/stationElevation
value: is_valid
actions:
- name: set
flag: missing_elevation
ignore: rejected observations
- name: reject
- filter: Temporal Thinning
min_spacing: '{{ window_length }}'
seed_time: '{{ snow_background_time_iso }}'
category_variable:
name: MetaData/stationIdentification
actions:
- name: set
flag: temporal_thinning
ignore: rejected observations
- name: reject
obs prior filters:
- filter: Bounds Check
filter variables:
- name: totalSnowDepth
minvalue: 0.0
maxvalue: 20000.0
action:
name: reject
- filter: Domain Check
where:
- variable:
name: MetaData/stationElevation
value: is_valid
actions:
- name: set
flag: invalid_snowdepth
ignore: rejected observations
- name: reject
- filter: Domain Check # land only
where:
- variable:
name: GeoVaLs/slmsk
minvalue: 0.5
maxvalue: 1.5
actions:
- name: set
flag: land_check
ignore: rejected observations
- name: reject
- filter: Domain Check
where:
- variable:
name: MetaData/stationElevation
minvalue: -200.0
maxvalue: 9900.0
actions:
- name: set
flag: invalid_elevation
ignore: rejected observations
- name: reject
- filter: RejectList # no land-ice
where:
- variable:
name: GeoVaLs/vtype
minvalue: 14.5
maxvalue: 15.5
actions:
- name: set
flag: landice_check
ignore: rejected observations
- name: reject
- filter: Difference Check # elevation check
reference: MetaData/stationElevation
value: GeoVaLs/filtered_orography
threshold: 200.
actions:
- name: set
flag: elevation_bkgdiff
ignore: rejected observations
- name: reject
obs post filters:
- filter: Background Check # gross error check
filter variables:
- name: totalSnowDepth
threshold: 6.25
action:
name: reject
- filter: Temporal Thinning
min_spacing: '{{ window_length }}'
seed_time: '{{ snow_background_time_iso }}'
category_variable:
name: MetaData/stationIdentification
actions:
- name: set
flag: background_check
ignore: rejected observations
- name: reject
- filter: Met Office Buddy Check
filter variables:
- name: totalSnowDepth
Expand All @@ -107,3 +181,9 @@
damping_factor_1: 1.0
damping_factor_2: 1.0
background_error_group: BkgError
actions:
- name: set
flag: buddy_check
ignore: rejected observations
- name: reject

0 comments on commit bca7454

Please sign in to comment.