Skip to content

Commit

Permalink
issue #234 ECNT info for reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bikegeek committed Oct 18, 2023
1 parent 1f38198 commit 263c8d4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions METdbLoad/ush/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,8 @@

NUM_STAT_FHO_COLS = 29
NUM_STAT_CNT_COLS = 125
NUM_STAT_VCNT_COLS = 88
NUM_STAT_ECNT_COLS = 50
NUM_STAT_VCNT_COLS = 87
NUM_STAT_CTC_COLS = 31
NUM_STAT_SL1L2_COLS = 32
NUM_STAT_SAL1L2_COLS = 32
Expand All @@ -1341,7 +1342,7 @@
COMMON_STAT_HEADER]

#
# POINT STAT/GRID STAT linetypes, used in METreformat
# POINT STAT/GRID STAT/ ENSEMBLE STAT linetypes, used in METreformat
#


Expand Down Expand Up @@ -1441,6 +1442,19 @@
'ME2_BCU', 'MSESS_BCU',
'RMSFA_BCU', 'RMSOA_BCU', 'ANOM_CORR_UNCNTR_BCU', 'SI_BCU']

# Column headers for the ECNT line type

LC_ECNT_SPECIFIC = ['n_ens', 'crps', 'crpss', 'ign', 'me', 'rmse', 'spread',
'me_oerr', 'rmse_oerr', 'spread_oerr', 'spread_plus_oerr',
'crpscl', 'crps_emp', 'crpscl_emp', 'crpss_emp',
'crps_emp_fair', 'spread_md', 'mae', 'mae_oerr',
'bias_ratio', 'n_ge_obs', 'me_ge_obs',
'n_lt_obs', 'me_lt_obs']
ECNT_STATISTICS_HEADERS = [cur_stat_header.upper() for cur_stat_header in
LC_ECNT_SPECIFIC]
ECNT_HEADERS = LC_COMMON_STAT_HEADER + ['total'] + ECNT_STATISTICS_HEADERS



###### VCNT line type
LC_VCNT_SPECIFIC = ['fbar', 'fbar_bcl', 'fbar_bcu',
Expand All @@ -1467,7 +1481,7 @@

]
VCNT_SPECIFIC = [cur_stat_header.upper() for cur_stat_header in LC_VCNT_SPECIFIC]
FULL_CNT_HEADER = LC_COMMON_STAT_HEADER + ['total'] + VCNT_SPECIFIC
FULL_VCNT_HEADER = LC_COMMON_STAT_HEADER + ['total'] + VCNT_SPECIFIC
LC_VCNT_STATISTICS_HEADERS = ['fbar',
'obar',
'fs_rms',
Expand Down

0 comments on commit 263c8d4

Please sign in to comment.