Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/317 si stat #321

Merged
merged 2 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions R_work/include/statistics.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ calcRMSE = function(d){ return( sqrt(calcMSE(d)) ); }
calcESTDEV = function(d){ return( calcStdDev( calcME(d) * d$total, calcMSE(d) * d$total, d$total) ); }
calcBCMSE = function(d){ return( calcMSE(d) - (d$fbar - d$obar)^2 ); }
calcBCRMSE = function(d){ return( sqrt(calcBCMSE(d)) ); }
calcSI = function(d){return( calcRMSE(d)/ calcOBAR(d));}

# SSVAR stat calculations
calcSSVAR_FBAR = function(d){ return( calcFBAR(d) ); }
Expand Down
1 change: 1 addition & 0 deletions java/edu/ucar/metviewer/MVUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ public class MVUtil {
statsCnt.put("MSESS", new String[]{"bc", SL1L2});
statsCnt.put("RMSFA", new String[]{"bc", SAL1L2});
statsCnt.put("RMSOA", new String[]{"bc", SAL1L2});
statsCnt.put("SI", new String[]{"bc", SL1L2});
}

static {
Expand Down
4 changes: 4 additions & 0 deletions sql/mv_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ CREATE TABLE line_data_cnt
anom_corr_uncntr_bcl DOUBLE DEFAULT -9999,
anom_corr_uncntr_bcu DOUBLE DEFAULT -9999,

si DOUBLE DEFAULT -9999,
si_bcl DOUBLE DEFAULT -9999,
si_bcu DOUBLE DEFAULT -9999,


CONSTRAINT line_data_cnt_data_file_id_pk
FOREIGN KEY (data_file_id)
Expand Down
1 change: 1 addition & 0 deletions webapp/metviewer/js/metviewer_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ value_to_desc_map['FGBAR'] = 'Mean of absolute value of forecast gradients';
value_to_desc_map['MGBAR'] = 'Mean of maximum of absolute values of forecast and observed gradients';
value_to_desc_map['EGBAR'] = 'Mean of absolute value of forecast minus observed gradients';
value_to_desc_map['S1'] = 'S1 score';
value_to_desc_map['SI'] = 'Scatter Index';
value_to_desc_map['S1_OG'] = 'S1 score with respect to observed gradient';
value_to_desc_map['FGOG_RATIO'] = 'Ratio of forecast and observed gradients';
value_to_desc_map['SSVAR_SPREAD'] = 'RHIST_SPREAD is preferred';
Expand Down
2 changes: 1 addition & 1 deletion webapp/metviewer/js/metviewer_common.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.