Skip to content

Commit

Permalink
Per issue #1858: For both the point_stat and ensemble_stat tests: mod…
Browse files Browse the repository at this point in the history
…ified tests that use OBS_QTY to use OBS_QTY_INC. Added unit test for OBS_QTY_EXC (obs_quality_exclude). SL
  • Loading branch information
Seth Linden committed Sep 13, 2021
1 parent 8554dec commit 206a8b9
Showing 1 changed file with 59 additions and 10 deletions.
69 changes: 59 additions & 10 deletions test/xml/unit_quality_filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,41 @@
<!-- NOTE: assumes that the madis2nc and pb2nc unit tests have run -->
<!-- -->

<test name="point_stat_QTY_PB_ON">
<test name="point_stat_QTY_INC_PB_ON">
<exec>&MET_BIN;/point_stat</exec>
<env>
<pair><name>OBS_QUALITY_SFC</name> <value>"8"</value></pair>
<pair><name>OBS_QUALITY_UPA</name> <value>"2"</value></pair>
<pair><name>OBS_QUALITY_INC_SFC</name> <value>"8"</value></pair>
<pair><name>OBS_QUALITY_INC_UPA</name> <value>"2"</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>QTY_PB</value></pair>
</env>
<param> \
&DATA_DIR_MODEL;/grib1/nam/nam_2012040900_F012.grib \
&OUTPUT_DIR;/pb2nc/gdas1.20120409.t12z.prepbufr.nc \
&CONFIG_DIR;/PointStatConfig_qty \
&CONFIG_DIR;/PointStatConfig_qty_inc \
-outdir &OUTPUT_DIR;/point_stat -v 3
</param>
<output>
<stat>&OUTPUT_DIR;/point_stat/point_stat_QTY_PB_120000L_20120409_120000V.stat</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_QTY_PB_120000L_20120409_120000V_fho.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_QTY_PB_120000L_20120409_120000V_ctc.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_QTY_PB_120000L_20120409_120000V_cts.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_QTY_PB_120000L_20120409_120000V_cnt.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_QTY_PB_120000L_20120409_120000V_sl1l2.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_QTY_PB_120000L_20120409_120000V_mpr.txt</stat>
</output>
</test>

<test name="point_stat_QTY_EXC_PB_ON">
<exec>&MET_BIN;/point_stat</exec>
<env>
<pair><name>OBS_QUALITY_EXC_SFC</name> <value>"9"</value></pair>
<pair><name>OBS_QUALITY_EXC_UPA</name> <value>"9"</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>QTY_PB</value></pair>
</env>
<param> \
&DATA_DIR_MODEL;/grib1/nam/nam_2012040900_F012.grib \
&OUTPUT_DIR;/pb2nc/gdas1.20120409.t12z.prepbufr.nc \
&CONFIG_DIR;/PointStatConfig_qty_exc \
-outdir &OUTPUT_DIR;/point_stat -v 3
</param>
<output>
Expand All @@ -47,14 +71,14 @@
<test name="point_stat_QTY_PB_OFF">
<exec>&MET_BIN;/point_stat</exec>
<env>
<pair><name>OBS_QUALITY_SFC</name> <value></value></pair>
<pair><name>OBS_QUALITY_UPA</name> <value></value></pair>
<pair><name>OBS_QUALITY_INC_SFC</name> <value></value></pair>
<pair><name>OBS_QUALITY_INC_UPA</name> <value></value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>QTY_PB</value></pair>
</env>
<param> \
&DATA_DIR_MODEL;/grib1/nam/nam_2012040900_F012.grib \
&OUTPUT_DIR;/pb2nc/gdas1.20120409.t12z.prepbufr.nc \
&CONFIG_DIR;/PointStatConfig_qty \
&CONFIG_DIR;/PointStatConfig_qty_inc \
-outdir &OUTPUT_DIR;/point_stat -v 3
</param>
<output>
Expand All @@ -68,18 +92,18 @@
</output>
</test>

<test name="ensemble_stat_QTY_MADIS_VGS">
<test name="ensemble_stat_QTY_INC_MADIS_VGS">
<exec>&MET_BIN;/ensemble_stat</exec>
<env>
<pair><name>OBS_QUALITY</name> <value>"V", "G", "S"</value></pair>
<pair><name>OBS_QUALITY_INC</name> <value>"V", "G", "S"</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>QTY_MADIS_VGS</value></pair>
</env>
<param> \
3 \
&DATA_DIR_MODEL;/grib1/arw-fer-gep1/arw-fer-gep1_2012040900_F012.grib \
&DATA_DIR_MODEL;/grib1/arw-sch-gep2/arw-sch-gep2_2012040900_F012.grib \
&DATA_DIR_MODEL;/grib1/arw-tom-gep3/arw-tom-gep3_2012040900_F012.grib \
&CONFIG_DIR;/EnsembleStatConfig_qty \
&CONFIG_DIR;/EnsembleStatConfig_qty_inc \
-point_obs &OUTPUT_DIR;/madis2nc/metar_2012040912_F000.nc \
-outdir &OUTPUT_DIR;/ensemble_stat -v 3
</param>
Expand All @@ -93,4 +117,29 @@
</output>
</test>

<test name="ensemble_stat_QTY_EXC_MADIS_VGS">
<exec>&MET_BIN;/ensemble_stat</exec>
<env>
<pair><name>OBS_QUALITY_EXC</name> <value>"C"</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>QTY_MADIS_VGS</value></pair>
</env>
<param> \
3 \
&DATA_DIR_MODEL;/grib1/arw-fer-gep1/arw-fer-gep1_2012040900_F012.grib \
&DATA_DIR_MODEL;/grib1/arw-sch-gep2/arw-sch-gep2_2012040900_F012.grib \
&DATA_DIR_MODEL;/grib1/arw-tom-gep3/arw-tom-gep3_2012040900_F012.grib \
&CONFIG_DIR;/EnsembleStatConfig_qty_exc \
-point_obs &OUTPUT_DIR;/madis2nc/metar_2012040912_F000.nc \
-outdir &OUTPUT_DIR;/ensemble_stat -v 3
</param>
<output>
<stat>&OUTPUT_DIR;/ensemble_stat/ensemble_stat_QTY_MADIS_VGS_20120409_120000V.stat</stat>
<stat>&OUTPUT_DIR;/ensemble_stat/ensemble_stat_QTY_MADIS_VGS_20120409_120000V_ecnt.txt</stat>
<stat>&OUTPUT_DIR;/ensemble_stat/ensemble_stat_QTY_MADIS_VGS_20120409_120000V_rhist.txt</stat>
<stat>&OUTPUT_DIR;/ensemble_stat/ensemble_stat_QTY_MADIS_VGS_20120409_120000V_phist.txt</stat>
<stat>&OUTPUT_DIR;/ensemble_stat/ensemble_stat_QTY_MADIS_VGS_20120409_120000V_orank.txt</stat>
<grid_nc>&OUTPUT_DIR;/ensemble_stat/ensemble_stat_QTY_MADIS_VGS_20120409_120000V_ens.nc</grid_nc>
</output>
</test>

</met_test>

0 comments on commit 206a8b9

Please sign in to comment.