Skip to content

Commit

Permalink
Per #2186, add new tc_pairs_CONSENSUS test to unit_tc_pairs.xml to de…
Browse files Browse the repository at this point in the history
…monstrate the computation of consensus tracks. Note however that the TC-Pairs computed consensus do not match the output from NHC as closely as I'd expect.
  • Loading branch information
JohnHalleyGotway committed Sep 27, 2022
1 parent 7472da5 commit 010ae88
Show file tree
Hide file tree
Showing 2 changed files with 217 additions and 0 deletions.
198 changes: 198 additions & 0 deletions internal/test_unit/config/TCPairsConfig_CONSENSUS
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
////////////////////////////////////////////////////////////////////////////////
//
// TC-Pairs configuration file.
//
// For additional information, please see the MET User's Guide.
//
////////////////////////////////////////////////////////////////////////////////

//
// ATCF file format reference:
// http://www.nrlmry.navy.mil/atcf_web/docs/database/new/abrdeck.html
//

//
// Models
//
model = [];

//
// Description
//
desc = "NA";

//
// Storm identifiers
//
storm_id = [ "AL132020" ];

//
// Basins
//
basin = [];

//
// Cyclone numbers
//
cyclone = [];

//
// Storm names
//
storm_name = [];

//
// Model initialization time windows to include or exclude
//
init_beg = ${INIT_BEG};
init_end = ${INIT_END};
init_inc = [];
init_exc = [];

//
// Valid model time windows to include or exclude
//
valid_beg = "";
valid_end = "";
valid_inc = [];
valid_exc = [];

//
// Valid times for which output should be written
//
write_valid = [];

//
// Model initialization hours
//
init_hour = [];

//
// Required lead time in hours
//
lead_req = [];

//
// lat/lon polylines defining masking regions
//
init_mask = "";
valid_mask = "";

//
// Specify if the code should check for duplicate ATCF lines
//
check_dup = TRUE;

//
// Specify special processing to be performed for interpolated models.
// Set to NONE, FILL, or REPLACE.
//
interp12 = NONE;

//
// Specify how consensus forecasts should be defined
// See NHC Consensus Definitions in Table 2:
// https://www.nhc.noaa.gov/modelsummary.shtml
//
consensus = [
{
name = "UEMN_CONS";
members = [ "UE00", "UE01", "UE02", "UE03", "UE04",
"UE05", "UE06", "UE07", "UE08", "UE09",
"UE10", "UE11", "UE12", "UE13", "UE14",
"UE15", "UE16", "UE17", "UE18", "UE19",
"UE20", "UE21", "UE22", "UE23", "UE24",
"UE25", "UE26", "UE27", "UE28", "UE29",
"UE30", "UE31", "UE32", "UE33", "UE34",
"UE35" ];
required = [];
min_req = 36;
},
{
name = "HCCA_CONS";
members = [ "AEMI", "GFSI", "CTCI", "DSHP", "EGRI", "EMN2", "EMXI", "HWFI", "LGEM" ];
required = [];
min_req = 8;
},
{
name = "GFEX_CONS";
members = [ "GFSI", "EMXI" ];
required = [];
min_req = 2;
},
{
name = "TVCA_CONS";
members = [ "GFSI", "EGRI", "HWFI", "EMHI", "CTCI", "EMNI" ];
required = [];
min_req = 2;
},
{
name = "TVCX_CONS";
members = [ "GFSI", "EMXI", "EMXI", "HWFI", "CTCI", "EGRI" ];
required = [ TRUE, TRUE, FALSE, FALSE, FALSE, FALSE ];
min_req = 2;
},
{
name = "ICON_CONS";
members = [ "DSHP", "LGEM", "HWFI", "HMNI" ];
required = [ TRUE, TRUE, TRUE, TRUE ];
min_req = 4;
},
{
name = "IVCN_CONS";
members = [ "DSHP", "LGEM", "HWFI", "HMNI", "CTCI" ];
required = [];
min_req = 2;
}
];

//
// Forecast lag times
//
lag_time = [];

//
// CLIPER/SHIFOR baseline forecasts to be derived from the BEST
// and operational (CARQ) tracks.
//
best_baseline = [ "BCLP" ];
oper_baseline = [ "OCLP" ];

//
// Specify if only those track points common to both the ADECK and BDECK
// tracks be written out.
//
match_points = TRUE;

//
// Specify the NetCDF output of the gen_dland tool containing a gridded
// representation of the minimum distance to land.
//
dland_file = "${MET_TEST_OUTPUT}/tc_dland/tc_dland_half_deg.nc";

//
// Specify watch/warning information:
// - Input watch/warning filename
// - Watch/warning time offset in seconds
//
watch_warn = {
file_name = "MET_BASE/tc_data/wwpts_us.txt";
time_offset = -14400;
}

//
// Modify basin names to make them consistent across ATCF input files.
//
basin_map = [
{ key = "SI"; val = "SH"; },
{ key = "SP"; val = "SH"; },
{ key = "AU"; val = "SH"; },
{ key = "AB"; val = "IO"; },
{ key = "BB"; val = "IO"; }
];

//
// Indicate a version number for the contents of this configuration file.
// The value should generally not be modified.
//
version = "V11.0.0";
19 changes: 19 additions & 0 deletions internal/test_unit/xml/unit_tc_pairs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@
</output>
</test>

<test name="tc_pairs_CONSENSUS">
<exec>&MET_BIN;/tc_pairs</exec>
<env>
<pair><name>INIT_BEG</name> <value>"20200823_00"</value></pair>
<pair><name>INIT_END</name> <value>"20200823_18"</value></pair>
</env>
<param> \
-adeck &DATA_DIR;/adeck/aal132020.dat \
-bdeck &DATA_DIR;/bdeck/bal132020.dat \
-config &CONFIG_DIR;/TCPairsConfig_CONSENSUS \
-out &OUTPUT_DIR;/tc_pairs/al132020_CONSENSUS \
-log &OUTPUT_DIR;/tc_pairs/tc_pairs_CONSENSUS.log \
-v 2
</param>
<output>
<stat>&OUTPUT_DIR;/tc_pairs/al132020_CONSENSUS.tcst</stat>
</output>
</test>

<test name="tc_pairs_INTERP12_FILL">
<exec>&MET_BIN;/tc_pairs</exec>
<env>
Expand Down

0 comments on commit 010ae88

Please sign in to comment.