From e507480e3c652c6ab62aeb767aa167d848214945 Mon Sep 17 00:00:00 2001 From: TatianaBurek Date: Tue, 13 Jul 2021 09:39:16 -0600 Subject: [PATCH] add HSS_EC statistic from the MCTS line type. #285 --- java/edu/ucar/metviewer/MVUtil.java | 1 + .../metviewer/db/mysql/MysqlAppDatabaseManager.java | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/java/edu/ucar/metviewer/MVUtil.java b/java/edu/ucar/metviewer/MVUtil.java index 32e5de52..7d35d399 100644 --- a/java/edu/ucar/metviewer/MVUtil.java +++ b/java/edu/ucar/metviewer/MVUtil.java @@ -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}); } diff --git a/java/edu/ucar/metviewer/db/mysql/MysqlAppDatabaseManager.java b/java/edu/ucar/metviewer/db/mysql/MysqlAppDatabaseManager.java index c27efa0a..fc58e195 100644 --- a/java/edu/ucar/metviewer/db/mysql/MysqlAppDatabaseManager.java +++ b/java/edu/ucar/metviewer/db/mysql/MysqlAppDatabaseManager.java @@ -1541,9 +1541,14 @@ public List 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";