Skip to content

Commit

Permalink
Added support for setting time_offset_warning now that the changes fo…
Browse files Browse the repository at this point in the history
…r other wrappers was merged into develop. Also added support for MET_CONFIG_OVERRIDES for Point2Grid
  • Loading branch information
georgemccabe committed May 16, 2024
1 parent 50e5a32 commit 1fdff32
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/Users_Guide/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11773,3 +11773,22 @@ METplus Configuration Glossary
Specify the value for 'time_offset_warning' in the MET configuration file for WaveletStat.

| *Used by:* WaveletStat
POINT2GRID_TIME_OFFSET_WARNING
Specify the value for 'time_offset_warning' in the MET configuration file for Point2Grid.

| *Used by:* Point2Grid
POINT2GRID_MET_CONFIG_OVERRIDES
Override any variables in the MET configuration file that are not
supported by the wrapper. This should be set to the full variable name
and value that you want to override, including the equal sign and the
ending semi-colon. The value is directly appended to the end of the
wrapped MET config file.

Example:
POINT2GRID_MET_CONFIG_OVERRIDES = desc = "override_desc"; model = "override_model";

See :ref:`Overriding Unsupported MET config file settings<met-config-overrides>` for more information

| *Used by:* Point2Grid
25 changes: 25 additions & 0 deletions docs/Users_Guide/wrappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6412,6 +6412,8 @@ METplus Configuration
| :term:`POINT2GRID_QUALITY_MARK_THRESH`
| :term:`POINT2GRID_OBS_QUALITY_INC`
| :term:`POINT2GRID_OBS_QUALITY_EXC`
| :term:`POINT2GRID_TIME_OFFSET_WARNING`
| :term:`POINT2GRID_MET_CONFIG_OVERRIDES`
|
.. warning:: **DEPRECATED:**
Expand Down Expand Up @@ -6531,6 +6533,29 @@ ${METPLUS_OBS_QUALITY_EXC}
* - :term:`POINT2GRID_OBS_QUALITY_EXC`
- obs_quality_exc

${METPLUS_TIME_OFFSET_WARNING}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. list-table::
:widths: 5 5
:header-rows: 1

* - METplus Config(s)
- MET Config File
* - :term:`POINT2GRID_TIME_OFFSET_WARNING`
- time_offset_warning

${METPLUS_MET_CONFIG_OVERRIDES}
"""""""""""""""""""""""""""""""

.. list-table::
:widths: 5 5
:header-rows: 1

* - METplus Config(s)
- MET Config File
* - :term:`POINT2GRID_MET_CONFIG_OVERRIDES`
- n/a

.. _point_stat_wrapper:

Expand Down
2 changes: 2 additions & 0 deletions internal/tests/pytests/wrappers/point2grid/test_point2grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def test_point2grid_missing_inputs(metplus_config, get_test_data_dir,
{'METPLUS_OBS_QUALITY_EXC': 'obs_quality_exc = ["3", "4", "5"];'}, []),
({'POINT2GRID_QC_FLAGS': '0,1'}, {'METPLUS_OBS_QUALITY_INC': 'obs_quality_inc = ["0", "1"];'}, []),
({'POINT2GRID_TIME_OFFSET_WARNING': '5', },
{'METPLUS_TIME_OFFSET_WARNING': 'time_offset_warning = 5;'}, []),
]
)
Expand Down
3 changes: 3 additions & 0 deletions parm/met_config/Point2GridConfig_wrapped
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ tmp_dir = "${MET_TMP_DIR}";
//version = "V12.0.0";

////////////////////////////////////////////////////////////////////////////////

${METPLUS_TIME_OFFSET_WARNING}
${METPLUS_MET_CONFIG_OVERRIDES}
3 changes: 3 additions & 0 deletions parm/use_cases/met_tool_wrapper/Point2Grid/Point2Grid.conf
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,6 @@ POINT2GRID_VLD_THRESH =
#POINT2GRID_QUALITY_MARK_THRESH =
#POINT2GRID_OBS_QUALITY_INC =
#POINT2GRID_OBS_QUALITY_EXC =

#POINT2GRID_TIME_OFFSET_WARNING =
#POINT2GRID_MET_CONFIG_OVERRIDES =

0 comments on commit 1fdff32

Please sign in to comment.