Skip to content

Commit

Permalink
Per issue #2036, in the add() function re-worked lines that load the …
Browse files Browse the repository at this point in the history
…new consensus variables into the track-point object. SL ci-skip-all
  • Loading branch information
Seth Linden committed Oct 12, 2022
1 parent 62967e4 commit 453699c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/libcode/vx_tc_util/track_pair_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -407,17 +407,6 @@ void TrackPairInfo::add(const TCStatLine &l) {
tp->set_eye(string_to_systemsdepth(l.get_item(cs.c_str())));
tp->set_watch_warn(string_to_watchwarntype(l.get_item("WATCH_WARN")));

cs << cs_erase << deck[i] << "NUM_MEMBERS";
tp->set_num_members(atoi(l.get_item(cs.c_str())));
cs << cs_erase << deck[i] << "TRACK_SPREAD";
tp->set_spread(atof(l.get_item(cs.c_str())));
cs << cs_erase << deck[i] << "DIST_MEAN";
tp->set_dist_mean(atof(l.get_item(cs.c_str())));
cs << cs_erase << deck[i] << "MAX_WIND_SPREAD";
tp->set_v_max_stdev(atof(l.get_item(cs.c_str())));
cs << cs_erase << deck[i] << "MSLP_SPREAD";
tp->set_mslp_stdev(atof(l.get_item(cs.c_str())));

// Loop over the winds
for(j=0; j<NWinds; j++) {

Expand All @@ -444,6 +433,13 @@ void TrackPairInfo::add(const TCStatLine &l) {
} // end for j
} // end for i

// Set the consensus track variables
tp->set_num_members(atoi(l.get_item("NUM_MEMBERS")));
tp->set_spread(atof(l.get_item("TRACK_SPREAD")));
tp->set_dist_mean(atof(l.get_item("DIST_MEAN")));
tp->set_v_max_stdev(atof(l.get_item("MAX_WIND_SPREAD")));
tp->set_mslp_stdev(atof(l.get_item("MSLP_SPREAD")));

// Add the TrackPoints to the ADECK/BDECK tracks
ADeck.add(apoint);
BDeck.add(bpoint);
Expand Down

0 comments on commit 453699c

Please sign in to comment.