Skip to content

Commit

Permalink
add HSS_EC statistic from the MCTS line type. #285
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaBurek committed Jul 13, 2021
1 parent fb1e74e commit e507480
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions java/edu/ucar/metviewer/MVUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ public class MVUtil {
statsMcts.put("MCTS_HK", new String[]{"bc"});
statsMcts.put("MCTS_HSS", new String[]{"bc"});
statsMcts.put("MCTS_GER", new String[]{"bc"});
statsMcts.put("MCTS_HSS_EC", new String[]{"bc"});
//statsMcts.put("MCTS_TOTAL", new String[]{MCTC});
}

Expand Down
11 changes: 8 additions & 3 deletions java/edu/ucar/metviewer/db/mysql/MysqlAppDatabaseManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1541,9 +1541,14 @@ public List<String> buildPlotSql(
statField = strStat.replace("PSTD_", "").toLowerCase();
} else if (MVUtil.statsMcts.containsKey(strStat)) {
tableStats = MVUtil.statsMcts;
MVUtil.isAggTypeValid(MVUtil.statsMcts, strStat, aggType);
statTable = "line_data_mcts ld\n";
statField = strStat.replace("MCTS_", "").toLowerCase();
if (aggType != null) {
//TODO implement agg logic
//statTable = "line_data_mctc ld";
//MVUtil.isAggTypeValid(MVUtil.statsMctc, strStat, aggType);
}else{
statTable = "line_data_mcts ld\n";
statField = strStat.replace("MCTS_", "").toLowerCase();
}
} else if (MVUtil.statsRhist.containsKey(strStat)) {
tableStats = MVUtil.statsRhist;
statTable = "line_data_rhist ld\n";
Expand Down

0 comments on commit e507480

Please sign in to comment.