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

Feature #1898 tc new options #1932

Merged
merged 24 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
44fc9f5
Per #1898, add support for setting optional -diag argument to tc_pair…
georgemccabe Nov 7, 2022
b89885a
added new fake data files to test that correct commands are built for…
georgemccabe Nov 8, 2022
34216c5
cleaned up tests and added check to ensure command is generated corre…
georgemccabe Nov 8, 2022
a8c4f02
expanded unit tests to check that -diag arguments are set properly an…
georgemccabe Nov 8, 2022
b284913
per #1898, added support for setting -diag arguments and rearranged f…
georgemccabe Nov 8, 2022
748a0dc
added a fix to be able to import when running the doc_util script dir…
georgemccabe Nov 8, 2022
a9bd2e2
Merge branch 'develop' into feature_1898_tc_new_options
georgemccabe Nov 8, 2022
4ad713f
Merge branch 'bugfix_1910_develop_ensemble_stat_lev_in_fcst' into fea…
georgemccabe Nov 8, 2022
eab66e8
per #1898, add support for setting diag_name and diag_convert_map in …
georgemccabe Nov 8, 2022
756aab7
fixed bug in formatting list of dictionaries in wrapped MET config fi…
georgemccabe Nov 9, 2022
2ea9ee3
fixed bug introduced by last commit regarding a list of dictionaries
georgemccabe Nov 9, 2022
c377e30
added comment to note what is supported for nmep_smooth.type
georgemccabe Nov 9, 2022
29aed7c
added comments to describe each new unit test and number to easily tr…
georgemccabe Nov 9, 2022
b8c3240
removed tests that shouldn't occur because all 3 items of diag_conver…
georgemccabe Nov 9, 2022
d978916
added support for handling desc in MET config that is a list like in …
georgemccabe Nov 9, 2022
2adc563
Per #1898, added support for diag_thresh_name, diag_thresh_val, init_…
georgemccabe Nov 9, 2022
42f1153
fixed bug where init_inc, init_exc, valid_inc, and valid_exc were not…
georgemccabe Nov 9, 2022
f74152c
make tests that check env vars consistent and ensure they check all o…
georgemccabe Nov 9, 2022
729961d
per #1926, add support for setting mask dictionary in SeriesAnalysis
georgemccabe Nov 9, 2022
86dbaeb
fixed typo that broke unit tests
georgemccabe Nov 9, 2022
9bb6b36
Merge branch 'develop' into feature_1898_tc_new_options
georgemccabe Nov 16, 2022
66092a1
per #1898, made modifications to TCPairs settings based on changes in…
georgemccabe Nov 16, 2022
aa91458
Per #1898, removed setting of models in -diag arguments because they …
georgemccabe Nov 16, 2022
ff4f62b
Merge branch 'develop' into feature_1898_tc_new_options
georgemccabe Nov 16, 2022
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
118 changes: 114 additions & 4 deletions docs/Users_Guide/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7569,22 +7569,22 @@ METplus Configuration Glossary
| *Used by:* PB2NC

TC_PAIRS_CONSENSUS<n>_NAME
Specify the value for nth 'consensus.name' in the MET configuration file for TCPairs.
Specify the value for the nth 'consensus.name' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_CONSENSUS<n>_MEMBERS
Specify the value for nth 'consensus.members' in the MET configuration file for TCPairs.
Specify the value for the nth 'consensus.members' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_CONSENSUS<n>_REQUIRED
Specify the value for nth 'consensus.required' in the MET configuration file for TCPairs.
Specify the value for the nth 'consensus.required' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_CONSENSUS<n>_MIN_REQ
Specify the value for nth 'consensus.min_req' in the MET configuration file for TCPairs.
Specify the value for the nth 'consensus.min_req' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

Expand Down Expand Up @@ -10093,3 +10093,113 @@ METplus Configuration Glossary
See :term:`STAT_ANALYSIS_FCST_VALID_END`.

| *Used by:* StatAnalysis

TC_PAIRS_DIAG_INFO_MAP<n>_DIAG_SOURCE
Specify the value for the nth 'diag_info_map.diag_source' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_INFO_MAP<n>_TRACK_SOURCE
Specify the value for the nth 'diag_info_map.track_source' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_INFO_MAP<n>_FIELD_SOURCE
Specify the value for the nth 'diag_info_map.field_source' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_INFO_MAP<n>_MATCH_TO_TRACK
Specify the value for the nth 'diag_info_map.match_to_track' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_INFO_MAP<n>_DIAG_NAME
Specify the value for the nth 'diag_info_map.diag_name' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_CONVERT_MAP<n>_DIAG_SOURCE
Specify the value for the nth 'diag_convert_map.diag_source' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_CONVERT_MAP<n>_KEY
Specify the value for the nth 'diag_convert_map.key' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_CONVERT_MAP<n>_CONVERT
Specify the value for the nth 'diag_convert_map.convert' in the MET configuration file for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_DIR<n>
Specify the (optional) directory for the nth -diag argument for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_TEMPLATE<n>
Specify the (optional) template for the nth -diag argument for TCPairs.

| *Used by:* TCPairs

TC_PAIRS_DIAG_SOURCE<n>
Specify the (optional) source string for the nth -diag argument for TCPairs.

| *Used by:* TCPairs

TC_STAT_DIAG_THRESH_NAME
Specify the value for 'diag_thresh_name' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_DIAG_THRESH_VAL
Specify the value for 'diag_thresh_val' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_INIT_DIAG_THRESH_NAME
Specify the value for 'init_diag_thresh_name' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_INIT_DIAG_THRESH_VAL
Specify the value for 'init_diag_thresh_val' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_LINE_TYPE
Specify the value for 'line_type' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_EVENT_EQUAL
Specify the value for 'event_equal' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_EVENT_EQUAL_LEAD
Specify the value for 'event_equal_lead' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_OUT_INIT_MASK
Specify the value for 'out_init_mask' in the MET configuration file for TCStat.

| *Used by:* TCStat

TC_STAT_OUT_VALID_MASK
Specify the value for 'out_valid_mask' in the MET configuration file for TCStat.

| *Used by:* TCStat

SERIES_ANALYSIS_MASK_GRID
Specify the value for 'mask.grid' in the MET configuration file for SeriesAnalysis.

| *Used by:* SeriesAnalysis

SERIES_ANALYSIS_MASK_POLY
Specify the value for 'mask.poly' in the MET configuration file for SeriesAnalysis.

| *Used by:* SeriesAnalysis
170 changes: 170 additions & 0 deletions docs/Users_Guide/wrappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6387,6 +6387,8 @@ METplus Configuration
| :term:`OBS_SERIES_ANALYSIS_CAT_THRESH`
| :term:`FCST_SERIES_ANALYSIS_IS_PROB`
| :term:`FCST_SERIES_ANALYSIS_PROB_IN_GRIB_PDS`
| :term:`SERIES_ANALYSIS_MASK_GRID`
| :term:`SERIES_ANALYSIS_MASK_POLY`
|

.. warning:: **DEPRECATED:**
Expand Down Expand Up @@ -6618,6 +6620,19 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`SERIES_ANALYSIS_CLIMO_CDF_DIRECT_PROB`
- climo_cdf.direct_prob

**${METPLUS_MASK_DICT}**

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

* - METplus Config(s)
- MET Config File
* - :term:`SERIES_ANALYSIS_MASK_GRID`
- mask.grid
* - :term:`SERIES_ANALYSIS_MASK_POLY`
- mask.poly

**${METPLUS_BLOCK_SIZE}**

.. list-table::
Expand Down Expand Up @@ -8210,6 +8225,17 @@ METplus Configuration
| :term:`TC_PAIRS_CHECK_DUP`
| :term:`TC_PAIRS_INTERP12`
| :term:`TC_PAIRS_MATCH_POINTS`
| :term:`TC_PAIRS_DIAG_INFO_MAP<n>_DIAG_SOURCE`
| :term:`TC_PAIRS_DIAG_INFO_MAP<n>_TRACK_SOURCE`
| :term:`TC_PAIRS_DIAG_INFO_MAP<n>_FIELD_SOURCE`
| :term:`TC_PAIRS_DIAG_INFO_MAP<n>_MATCH_TO_TRACK`
| :term:`TC_PAIRS_DIAG_INFO_MAP<n>_DIAG_NAME`
| :term:`TC_PAIRS_DIAG_CONVERT_MAP<n>_DIAG_SOURCE`
| :term:`TC_PAIRS_DIAG_CONVERT_MAP<n>_KEY`
| :term:`TC_PAIRS_DIAG_CONVERT_MAP<n>_CONVERT`
| :term:`TC_PAIRS_DIAG_SOURCE\<n\>`
| :term:`TC_PAIRS_DIAG_TEMPLATE\<n\>`
| :term:`TC_PAIRS_DIAG_DIR\<n\>`
|

.. warning:: **DEPRECATED:**
Expand Down Expand Up @@ -8492,6 +8518,41 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`TC_PAIRS_INTERP12`
- interp12

**${METPLUS_DIAG_INFO_MAP_LIST}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_PAIRS_DIAG_INFO_MAP<n>_DIAG_SOURCE`
- diag_info_map.diag_source
* - :term:`TC_PAIRS_DIAG_INFO_MAP<n>_TRACK_SOURCE`
- diag_info_map.track_source
* - :term:`TC_PAIRS_DIAG_INFO_MAP<n>_FIELD_SOURCE`
- diag_info_map.field_source
* - :term:`TC_PAIRS_DIAG_INFO_MAP<n>_MATCH_TO_TRACK`
- diag_info_map.match_to_track
* - :term:`TC_PAIRS_DIAG_INFO_MAP<n>_DIAG_NAME`
- diag_info_map.diag_name

**${METPLUS_DIAG_CONVERT_MAP_LIST}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_PAIRS_DIAG_CONVERT_MAP<n>_DIAG_SOURCE`
- diag_convert_map.diag_source
* - :term:`TC_PAIRS_DIAG_CONVERT_MAP<n>_KEY`
- diag_convert_map.key
* - :term:`TC_PAIRS_DIAG_CONVERT_MAP<n>_CONVERT`
- diag_convert_map.convert


.. _tcrmw_wrapper:

TCRMW
Expand Down Expand Up @@ -8852,6 +8913,15 @@ METplus Configuration
| :term:`TC_STAT_COLUMN_STR_EXC_VAL`
| :term:`TC_STAT_INIT_STR_EXC_NAME`
| :term:`TC_STAT_INIT_STR_EXC_VAL`
| :term:`TC_STAT_DIAG_THRESH_NAME`
| :term:`TC_STAT_DIAG_THRESH_VAL`
| :term:`TC_STAT_INIT_DIAG_THRESH_NAME`
| :term:`TC_STAT_INIT_DIAG_THRESH_VAL`
| :term:`TC_STAT_LINE_TYPE`
| :term:`TC_STAT_EVENT_EQUAL`
| :term:`TC_STAT_EVENT_EQUAL_LEAD`
| :term:`TC_STAT_OUT_INIT_MASK`
| :term:`TC_STAT_OUT_VALID_MASK`
|

.. warning:: **DEPRECATED:**
Expand Down Expand Up @@ -9113,6 +9183,17 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`TC_STAT_VALID_MASK`
- valid_mask

**${METPLUS_LINE_TYPE}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_LINE_TYPE`
- line_type

**${METPLUS_TRACK_WATCH_WARN}**

.. list-table::
Expand Down Expand Up @@ -9256,6 +9337,50 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`TC_STAT_INIT_STR_EXC_VAL`
- init_str_exc_val

**${METPLUS_DIAG_THRESH_NAME}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_DIAG_THRESH_NAME`
- diag_thresh_name

**${METPLUS_DIAG_THRESH_VAL}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_DIAG_THRESH_VAL`
- diag_thresh_val

**${METPLUS_INIT_DIAG_THRESH_NAME}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_INIT_DIAG_THRESH_NAME`
- init_diag_thresh_name

**${METPLUS_INIT_DIAG_THRESH_VAL}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_INIT_DIAG_THRESH_VAL`
- init_diag_thresh_val

**${METPLUS_WATER_ONLY}**

.. list-table::
Expand Down Expand Up @@ -9333,6 +9458,51 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`TC_STAT_MET_CONFIG_OVERRIDES`
- n/a

**${METPLUS_EVENT_EQUAL}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_EVENT_EQUAL`
- event_equal

**${METPLUS_EVENT_EQUAL_LEAD}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_EVENT_EQUAL_LEAD`
- event_equal_lead

**${METPLUS_OUT_INIT_MASK}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_OUT_INIT_MASK`
- out_init_mask

**${METPLUS_OUT_VALID_MASK}**

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

* - METplus Config(s)
- MET Config File
* - :term:`TC_STAT_OUT_VALID_MASK`
- out_valid_mask


.. _user_script_wrapper:

UserScript
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,13 @@ def test_ascii2nc_wrapper(metplus_config, config_overrides,
assert all_commands[0][0] == expected_cmd

env_vars = all_commands[0][1]

missing_env = [item for item in env_var_values
if item not in wrapper.WRAPPER_ENV_VAR_KEYS]
env_var_keys = wrapper.WRAPPER_ENV_VAR_KEYS + missing_env

# check that environment variables were set properly
# including deprecated env vars (not in wrapper env var keys)
env_var_keys = (wrapper.WRAPPER_ENV_VAR_KEYS +
[name for name in env_var_values
if name not in wrapper.WRAPPER_ENV_VAR_KEYS])
for env_var_key in env_var_keys:
match = next((item for item in env_vars if
item.startswith(env_var_key)), None)
Expand Down
Loading