Skip to content

Commit

Permalink
Per #1714, only discard cyclone numbers > 50 from the Best track, not…
Browse files Browse the repository at this point in the history
… the forecast tracks.
  • Loading branch information
JohnHalleyGotway committed Apr 2, 2021
1 parent 0022754 commit f784f8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 2 additions & 11 deletions met/src/tools/tc_utils/tc_gen/tc_gen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -752,15 +752,6 @@ void process_fcst_tracks(const StringArray &files,
continue;
}

// Skip invest tracks with a large cyclone number
if(atof(fcst_ta[j].cyclone().c_str()) > max_cyclone_number) {
mlog << Debug(6)
<< "Skipping forecast genesis event for cyclone number "
<< fcst_ta[j].cyclone() << " > " << max_cyclone_number
<< ".\n";
continue;
}

// Check the forecast lead time window
if(fcst_gi.genesis_lead() < conf_info.FcstSecBeg ||
fcst_gi.genesis_lead() > conf_info.FcstSecEnd) {
Expand Down Expand Up @@ -918,10 +909,10 @@ void process_best_tracks(const StringArray &files,
}

// Skip invest tracks with a large cyclone number
if(atof(best_ta[i].cyclone().c_str()) > max_cyclone_number) {
if(atof(best_ta[i].cyclone().c_str()) > max_best_cyclone_number) {
mlog << Debug(6)
<< "Skipping Best track genesis event for cyclone number "
<< best_ta[i].cyclone() << " > " << max_cyclone_number
<< best_ta[i].cyclone() << " > " << max_best_cyclone_number
<< ".\n";
continue;
}
Expand Down
4 changes: 3 additions & 1 deletion met/src/tools/tc_utils/tc_gen/tc_gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ const ConcatString genesis_name ("GENESIS");
const ConcatString genesis_dev_name("GENESIS_DEV");
const ConcatString genesis_ops_name("GENESIS_OPS");

static const int max_cyclone_number = 50;
// Maximum Best track cyclone number to be processed
// Cyclone numbers > 50 are for testing or invests
static const int max_best_cyclone_number = 50;

////////////////////////////////////////////////////////////////////////
//
Expand Down

0 comments on commit f784f8f

Please sign in to comment.