Skip to content

Commit

Permalink
Per #1810, update the TC-Gen shapefile unit test to demonstrate the u…
Browse files Browse the repository at this point in the history
…se of filters.
  • Loading branch information
JohnHalleyGotway committed Jan 7, 2022
1 parent f4c1dc4 commit 3f70c61
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
9 changes: 8 additions & 1 deletion test/config/TCGenConfig_shape
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@ oper_technique = "CARQ";
// Array of dictionaries containing the track filtering options
// If empty, a single filter is defined using the top-level settings.
//
filter = [];
filter = [
{ desc = "SUMMER_INIT"; init_beg = "20210601"; init_end = "20210901"; },
{ desc = "00Z_12Z_INIT"; init_hour = [ "00", "12" ]; },
{ desc = "06Z_18Z_INIT"; init_hour = [ "06", "18" ]; },
{ desc = "AL_EP_BASIN"; basin_mask = ["AL", "EP" ]; },
{ desc = "AL_BASIN"; basin_mask = "AL"; },
{ desc = "EP_BASIN"; basin_mask = "EP"; }
];

//
// Description written to output DESC column
Expand Down
17 changes: 9 additions & 8 deletions test/xml/unit_tc_gen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,20 @@

<!-- Verify genesis shapes -->

<test name="tc_gen_shape">
<test name="tc_gen_2021_shape">
<exec>&MET_BIN;/tc_gen</exec>
<param> \
-shape &DATA_DIR;/genesis/shape \
-track &DATA_DIR;/bdeck/genesis/atcf/2021 \
-shape &DATA_DIR;/genesis/shape/atl \
-shape &DATA_DIR;/genesis/shape/epac \
-track &DATA_DIR;/genesis/atcf/2021 \
-config &CONFIG_DIR;/TCGenConfig_shape \
-out &OUTPUT_DIR;/tc_gen/tc_gen_shape \
-log &OUTPUT_DIR;/tc_gen/tc_gen_shape.log \
-v 5
-out &OUTPUT_DIR;/tc_gen/tc_gen_2021_shape \
-log &OUTPUT_DIR;/tc_gen/tc_gen_2021_shape.log \
-v 3
</param>
<output>
<stat>&OUTPUT_DIR;/tc_gen/tc_gen_shape.stat</stat>
<stat>&OUTPUT_DIR;/tc_gen/tc_gen_shape_pct.txt</stat>
<stat>&OUTPUT_DIR;/tc_gen/tc_gen_2021_shape.stat</stat>
<stat>&OUTPUT_DIR;/tc_gen/tc_gen_2021_shape_pct.txt</stat>
</output>
</test>

Expand Down

0 comments on commit 3f70c61

Please sign in to comment.