Skip to content

Commit

Permalink
Feature 1103 PointStat orank output_flag (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe authored Aug 31, 2021
1 parent bba3a9c commit 9309f83
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/Users_Guide/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6761,6 +6761,11 @@ METplus Configuration Glossary

| *Used by:* PointStat
POINT_STAT_OUTPUT_FLAG_ORANK
Specify the value for 'output_flag.orank' in the MET configuration file for PointStat.

| *Used by:* PointStat
POINT_STAT_INTERP_VLD_THRESH
Specify the value for 'interp.vld_thresh' in the MET configuration file for PointStat.

Expand Down
3 changes: 3 additions & 0 deletions docs/Users_Guide/wrappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4466,6 +4466,7 @@ Configuration
| :term:`POINT_STAT_OUTPUT_FLAG_RPS`
| :term:`POINT_STAT_OUTPUT_FLAG_ECLV`
| :term:`POINT_STAT_OUTPUT_FLAG_MPR`
| :term:`POINT_STAT_OUTPUT_FLAG_ORANK`
| :term:`POINT_STAT_INTERP_VLD_THRESH`
| :term:`POINT_STAT_INTERP_SHAPE`
| :term:`POINT_STAT_INTERP_TYPE_METHOD`
Expand Down Expand Up @@ -4844,6 +4845,8 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
- output_flag.eclv
* - :term:`POINT_STAT_OUTPUT_FLAG_MPR`
- output_flag.mpr
* - :term:`POINT_STAT_OUTPUT_FLAG_ORANK`
- output_flag.orank

**${METPLUS_INTERP_DICT}**

Expand Down
6 changes: 5 additions & 1 deletion internal_tests/pytests/point_stat/test_point_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ def test_met_dictionary_in_var_options(metplus_config):
({'POINT_STAT_OUTPUT_FLAG_MPR': 'BOTH', },
{'METPLUS_OUTPUT_FLAG_DICT': 'output_flag = {mpr = BOTH;}'}),
({'POINT_STAT_OUTPUT_FLAG_ORANK': 'BOTH', },
{'METPLUS_OUTPUT_FLAG_DICT': 'output_flag = {orank = BOTH;}'}),
({
'POINT_STAT_OUTPUT_FLAG_FHO': 'BOTH',
'POINT_STAT_OUTPUT_FLAG_CTC': 'BOTH',
Expand All @@ -258,9 +261,10 @@ def test_met_dictionary_in_var_options(metplus_config):
'POINT_STAT_OUTPUT_FLAG_RPS': 'BOTH',
'POINT_STAT_OUTPUT_FLAG_ECLV': 'BOTH',
'POINT_STAT_OUTPUT_FLAG_MPR': 'BOTH',
'POINT_STAT_OUTPUT_FLAG_ORANK': 'BOTH',
},
{
'METPLUS_OUTPUT_FLAG_DICT': 'output_flag = {fho = BOTH;ctc = BOTH;cts = BOTH;mctc = BOTH;mcts = BOTH;cnt = BOTH;sl1l2 = BOTH;sal1l2 = BOTH;vl1l2 = BOTH;val1l2 = BOTH;vcnt = BOTH;pct = BOTH;pstd = BOTH;pjc = BOTH;prc = BOTH;ecnt = BOTH;rps = BOTH;eclv = BOTH;mpr = BOTH;}'}),
'METPLUS_OUTPUT_FLAG_DICT': 'output_flag = {fho = BOTH;ctc = BOTH;cts = BOTH;mctc = BOTH;mcts = BOTH;cnt = BOTH;sl1l2 = BOTH;sal1l2 = BOTH;vl1l2 = BOTH;val1l2 = BOTH;vcnt = BOTH;pct = BOTH;pstd = BOTH;pjc = BOTH;prc = BOTH;ecnt = BOTH;rps = BOTH;eclv = BOTH;mpr = BOTH;orank = BOTH;}'}),
({'POINT_STAT_INTERP_VLD_THRESH': '0.5', },
{'METPLUS_INTERP_DICT': 'interp = {vld_thresh = 0.5;}'}),
Expand Down
1 change: 1 addition & 0 deletions metplus/wrappers/point_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class PointStatWrapper(CompareGriddedWrapper):
'rps',
'eclv',
'mpr',
'orank',
]

def __init__(self, config, instance=None, config_overrides={}):
Expand Down
1 change: 1 addition & 0 deletions parm/use_cases/met_tool_wrapper/PointStat/PointStat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ POINT_STAT_OUTPUT_FLAG_VL1L2 = STAT
#POINT_STAT_OUTPUT_FLAG_RPS =
#POINT_STAT_OUTPUT_FLAG_ECLV =
#POINT_STAT_OUTPUT_FLAG_MPR =
#POINT_STAT_OUTPUT_FLAG_ORANK =

#POINT_STAT_CLIMO_CDF_BINS = 1
#POINT_STAT_CLIMO_CDF_CENTER_BINS = False
Expand Down

0 comments on commit 9309f83

Please sign in to comment.