Skip to content

Commit 333dce2

Browse files
committed
add cx test for epsmws requested by reviewer
1 parent 377942b commit 333dce2

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
16.1 KB
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
time window:
2+
begin: 2018-01-01T00:00:00Z
3+
end: 2018-01-01T01:00:00Z
4+
5+
observations:
6+
- obs space:
7+
name: EPSMWS
8+
obsdatain:
9+
engine:
10+
type: H5File
11+
obsfile: Data/dummy.nc4
12+
simulated variables: [dummy]
13+
geovals:
14+
filename: Data/cx_globalnamelist_epsmws.nc4
15+
obs filters:
16+
# Set the flag of observations with missing values to "pass": we want to check if these
17+
# values are encoded correctly in the Cx file.
18+
- filter: Reset Flags to Pass
19+
flags_to_reset: [10, 15] # missing, Hfailed
20+
# Reject observation 3: we want to check if it is omitted from the Cx file, as expected.
21+
- filter: Domain Check
22+
where:
23+
- variable:
24+
name: MetaData/latitude
25+
minvalue: 0.0
26+
- filter: Cx Writer
27+
namelist_directory: ../etc/global/cx
28+
reject_obs_with_any_variable_failing_qc: true
29+
general_mode: debug
30+
IC_PLevels: 5
31+
- filter: Cx Checker
32+
expected_surface_variables: ["1","2","3","4","5","6","13","16","17"]
33+
expected_upper_air_variables: ["1","5","11","29","30","31","34","35"]
34+
expected_main_table_columns:
35+
- # batch 1 - 9 1dvalues first ; then 2d values in expected order
36+
# observation 3 is rejected by the tests above hence only 3 (1,2,4) columns
37+
- ["27.10","37.10","67.10","77.10","47.10","57.10","7.10","87.10","17.10","1.10","1.20","1.30","11.10","11.20","11.30","41.10","41.20","41.30","21.10","21.20","21.30","31.10","31.20","31.30","51.10","51.20","51.30","71.10","71.20","71.30","61.10","61.20","61.30"] # column 1 - 1st observation
38+
- ["**********","**********","**********","**********","**********","**********","**********","**********","**********","2.10","**********","2.30","12.10","**********","12.30","42.10","**********","42.30","22.10","**********","22.30","32.10","**********","32.30","52.10","**********","52.30","72.10","**********","72.30","62.10","**********","62.30"] # column 2 - 2nd observation
39+
- ["27.40","37.40","67.40","77.40","47.40","57.40","7.40","87.40","17.40","4.10","4.20","4.30","14.10","14.20","14.30","44.10","44.20","44.30","24.10","24.20","24.30","34.10","34.20","34.30","54.10","54.20","54.30","74.10","74.20","74.30","64.10","64.20","64.30"] # column 3 - observation 4
40+
HofX: ObsValue # just a placeholder -- not used, but needed to force calls to postFilter.
41+
benchmarkFlag: 1000 # just to keep the ObsFilters test happy
42+
flaggedBenchmark: 0

0 commit comments

Comments
 (0)