Skip to content

Commit

Permalink
Per #1451, update unit tests by enhancing the climatology call to Ens…
Browse files Browse the repository at this point in the history
…emble-Stat to also include point verification. Tweak the Ensemble-Stat cofiguration for that and also add a call to pb2nc to prepare the point observations for use.
  • Loading branch information
JohnHalleyGotway committed Feb 20, 2021
1 parent 6ccfa86 commit 4411687
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/config/EnsembleStatConfig_climo
Expand Up @@ -82,8 +82,8 @@ nmep_smooth = {
//
fcst = {
field = [
{ name = "TMP"; level = "Z2"; },
{ name = "TMP"; level = "P850"; }
{ name = "TMP"; level = "Z2"; message_type = [ "ADPSFC" ]; },
{ name = "TMP"; level = "P850"; message_type = [ "ADPUPA" ]; }
];
}
obs = fcst;
Expand Down Expand Up @@ -208,11 +208,11 @@ interp = {
// Statistical output types
//
output_flag = {
ecnt = STAT;
ecnt = BOTH;
rps = STAT;
rhist = STAT;
phist = STAT;
orank = STAT;
orank = BOTH;
ssvar = STAT;
relp = STAT;
}
Expand Down
3 changes: 3 additions & 0 deletions test/xml/unit_climatology.xml
Expand Up @@ -315,11 +315,14 @@
<param> \
&OUTPUT_DIR;/climatology/ensemble_stat_input_file_list \
&CONFIG_DIR;/EnsembleStatConfig_climo \
-point_obs &OUTPUT_DIR;/pb2nc/ndas.20120410.t12z.prepbufr.tm00.nc \
-grid_obs &DATA_DIR_OBS;/laps/laps_2012041012_F000.grib \
-outdir &OUTPUT_DIR;/climatology
</param>
<output>
<stat>&OUTPUT_DIR;/climatology/ensemble_stat_NCEP_1.0DEG_20120410_120000V.stat</stat>
<stat>&OUTPUT_DIR;/climatology/ensemble_stat_NCEP_1.0DEG_20120410_120000V_ecnt.txt</stat>
<stat>&OUTPUT_DIR;/climatology/ensemble_stat_NCEP_1.0DEG_20120410_120000V_orank.txt</stat>
<grid_nc>&OUTPUT_DIR;/climatology/ensemble_stat_NCEP_1.0DEG_20120410_120000V_ens.nc</grid_nc>
<grid_nc>&OUTPUT_DIR;/climatology/ensemble_stat_NCEP_1.0DEG_20120410_120000V_orank.nc</grid_nc>
</output>
Expand Down
19 changes: 19 additions & 0 deletions test/xml/unit_pb2nc.xml
Expand Up @@ -36,6 +36,25 @@
</output>
</test>

<test name="pb2nc_NDAS_no_mask">
<exec>&MET_BIN;/pb2nc</exec>
<env>
<pair><name>STATION_ID</name> <value></value></pair>
<pair><name>MASK_GRID</name> <value></value></pair>
<pair><name>MASK_POLY</name> <value></value></pair>
<pair><name>QUALITY_MARK_THRESH</name> <value>2</value></pair>
</env>
<param> \
&DATA_DIR_OBS;/prepbufr/ndas/nam.20120410.t12z.prepbufr.tm00.nr \
&OUTPUT_DIR;/pb2nc/ndas.20120410.t12z.prepbufr.tm00.nc \
&CONFIG_DIR;/PB2NCConfig \
-v 1
</param>
<output>
<point_nc>&OUTPUT_DIR;/pb2nc/ndas.20120410.t12z.prepbufr.tm00.nc</point_nc>
</output>
</test>

<test name="pb2nc_NDAS_mask_poly_conus">
<exec>&MET_BIN;/pb2nc</exec>
<env>
Expand Down

0 comments on commit 4411687

Please sign in to comment.