Skip to content

Commit

Permalink
Per #1942, update the PointStatConfig_APCP file to make the seeps set…
Browse files Browse the repository at this point in the history
…tings configurable. It is produced for 3 of the 4 unit tests that use that config file. Disable it's output for the 4th. The question remains as to whether seeps should be computed for ALL precip variables, or only for 24-hour accumulations. If it's the latter, none of these existing tests will work.
  • Loading branch information
JohnHalleyGotway committed Sep 16, 2022
1 parent 13af531 commit b812535
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
13 changes: 7 additions & 6 deletions internal/test_unit/config/PointStatConfig_APCP
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ wind_thresh = [ NA ];
wind_logic = UNION;
eclv_points = 0.05;

cat_thresh = [ >0.254, >0.635, >1.270, >2.540 ];
message_type = "ADPSFC";

fcst = {
sid_inc = [];
sid_exc = [];
Expand All @@ -47,10 +50,8 @@ fcst = {

field = [
{
name = "${FCST_FIELD_NAME}";
level = "${FCST_FIELD_LEVEL}";
cat_thresh = [ >0.254, >0.635, >1.270, >2.540 ];
message_type = "ADPSFC";
name = "${FCST_FIELD_NAME}";
level = "${FCST_FIELD_LEVEL}";
}
];

Expand Down Expand Up @@ -126,8 +127,8 @@ output_flag = {
rps = NONE;
eclv = BOTH;
mpr = NONE;
seeps = BOTH;
seeps_mpr = BOTH;
seeps = ${SEEPS_FLAG};
seeps_mpr = ${SEEPS_FLAG};
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
22 changes: 6 additions & 16 deletions internal/test_unit/xml/unit_point_stat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<pair><name>FCST_FIELD_NAME</name> <value>APCP</value></pair>
<pair><name>FCST_FIELD_LEVEL</name> <value>A3</value></pair>
<pair><name>OBS_DICT</name> <value>fcst</value></pair>
<pair><name>SEEPS_FLAG</name> <value>BOTH</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>GRIB1_NAM_TRMM</value></pair>
</env>
<param> \
Expand Down Expand Up @@ -194,6 +195,7 @@
<pair><name>FCST_FIELD_NAME</name> <value>APCP</value></pair>
<pair><name>FCST_FIELD_LEVEL</name> <value>A3</value></pair>
<pair><name>OBS_DICT</name> <value>fcst</value></pair>
<pair><name>SEEPS_FLAG</name> <value>BOTH</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>GRIB2_SREF_TRMM</value></pair>
</env>
<param> \
Expand Down Expand Up @@ -221,13 +223,8 @@
<pair><name>END_DS</name> <value>1800</value></pair>
<pair><name>FCST_FIELD_NAME</name> <value>APCP_24</value></pair>
<pair><name>FCST_FIELD_LEVEL</name> <value>(*,*)</value></pair>
<pair><name>OBS_DICT</name> <value>{ field = [
{ name = "APCP";
level = "A24";
cat_thresh = [ >0.254, >0.635, >1.270, >2.540 ];
message_type = "ADPSFC";
}
]; }</value></pair>
<pair><name>OBS_DICT</name> <value>{ field = [ { name = "APCP"; level = "A24"; } ]; }</value></pair>
<pair><name>SEEPS_FLAG</name> <value>NONE</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>NCMET_NAM_HMTGAGE</value></pair>
</env>
<param> \
Expand All @@ -243,8 +240,6 @@
<stat>&OUTPUT_DIR;/point_stat/point_stat_NCMET_NAM_HMTGAGE_360000L_20120410_120000V_cts.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_NCMET_NAM_HMTGAGE_360000L_20120410_120000V_cnt.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_NCMET_NAM_HMTGAGE_360000L_20120410_120000V_sl1l2.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_NCMET_NAM_HMTGAGE_360000L_20120410_120000V_seeps.txt</stat>
<stat>&OUTPUT_DIR;/point_stat/point_stat_NCMET_NAM_HMTGAGE_360000L_20120410_120000V_seeps_mpr.txt</stat>
</output>
</test>

Expand All @@ -255,13 +250,8 @@
<pair><name>END_DS</name> <value>150000000</value></pair>
<pair><name>FCST_FIELD_NAME</name> <value>RAINNC</value></pair>
<pair><name>FCST_FIELD_LEVEL</name> <value>(0,*,*)</value></pair>
<pair><name>OBS_DICT</name> <value>{ field = [
{ name = "APCP";
level = "A3";
cat_thresh = [ >0.254, >0.635, >1.270, >2.540 ];
message_type = "ADPSFC";
}
]; }</value></pair>
<pair><name>OBS_DICT</name> <value>{ field = [ { name = "APCP"; level = "A3"; } ]; }</value></pair>
<pair><name>SEEPS_FLAG</name> <value>BOTH</value></pair>
<pair><name>OUTPUT_PREFIX</name> <value>NCPINT_TRMM</value></pair>
</env>
<param> \
Expand Down

0 comments on commit b812535

Please sign in to comment.