Skip to content

Commit

Permalink
Per #2476, add a fake data example of including diagnostics in the co…
Browse files Browse the repository at this point in the history
…mputation of a track consensus.
  • Loading branch information
JohnHalleyGotway committed Sep 7, 2023
1 parent b7f9573 commit 3335d58
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 0 deletions.
175 changes: 175 additions & 0 deletions internal/test_unit/config/TCPairsConfig_DIAGNOSTICS_CONSENSUS
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
////////////////////////////////////////////////////////////////////////////////
//
// 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 = [ "GFSI", "EMXI" ];

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

//
// Storm identifiers
//
storm_id = [ ${STORM_ID} ];

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

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

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

//
// Model initialization time windows to include or exclude
//
init_beg = "";
init_end = "";
init_inc = [ ${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 = "GFEX_CONS";
members = [ "GFSI", "EMXI" ];
required = [];
min_req = 2;
write_members = TRUE;
}
];

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

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

//
// 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;
}

//
// Diagnostics to be extracted
//
diag_info_map = [
{
diag_source = "CIRA_DIAG_RT";
track_source = "TRACK_MODEL";
field_source = "0p50RES";
match_to_track = [ ];
diag_name = [ ${CIRA_RT_DIAG_NAME} ];
}
];

//
// Unit conversions to be applied based on diagnostic names and units
// Commented out to use settings from the default config file
//
// diag_convert_map = [];

//
// 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 = "V12.0.0";
23 changes: 23 additions & 0 deletions internal/test_unit/xml/unit_tc_pairs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,27 @@
</output>
</test>

<test name="tc_pairs_DIAGNOSTICS_CONSENSUS">
<exec>&MET_BIN;/tc_pairs</exec>
<env>
<pair><name>STORM_ID</name> <value>"AL092022"</value></pair>
<pair><name>INIT_INC</name> <value>"20220926_06", "20220926_18"</value></pair>
<pair><name>CIRA_RT_DIAG_NAME</name> <value>"TPW", "LAND", "SHR_MAG", "STM_SPD"</value></pair>
</env>
<param> \
-adeck &DATA_DIR;/adeck/aal092022.dat \
-bdeck &DATA_DIR;/bdeck/bal092022.dat \
-diag CIRA_DIAG_RT &DATA_DIR;/diag/cira_diag_rt/2022/GFSI/sal092022_avni_doper_20220926*_diag.dat \
-diag CIRA_DIAG_RT &DATA_DIR;/diag/cira_diag_rt/2022/EMXI/sal092022_emxi_doper_20220926*_diag.dat \
-config &CONFIG_DIR;/TCPairsConfig_DIAGNOSTICS_CONSENSUS \
-out &OUTPUT_DIR;/tc_pairs/al092022_20220926_DIAGNOSTICS_CONSENSUS \
-log &OUTPUT_DIR;/tc_pairs/tc_pairs_DIAGNOSTICS_CONSENSUS.log \
-v 4
</param>
<output>
<stat>&OUTPUT_DIR;/tc_pairs/al092022_20220926_DIAGNOSTICS_CONSENSUS.tcst</stat>
</output>
</test>


</met_test>

0 comments on commit 3335d58

Please sign in to comment.