Skip to content

Commit

Permalink
per #2432, replace output_prefix with output_base_format
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Nov 29, 2023
1 parent 24eb8f3 commit 139cbd5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
5 changes: 4 additions & 1 deletion docs/Users_Guide/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10423,7 +10423,10 @@ METplus Configuration Glossary
| *Used by:* TCDiag
TC_DIAG_OUTPUT_PREFIX
Specify the value for 'output_prefix' in the MET configuration file for TCDiag.
.. warning:: **DEPRECATED:** Please use :term:`TC_DIAG_OUTPUT_BASE_FORMAT` instead.

TC_DIAG_OUTPUT_BASE_FORMAT
Specify the value for 'output_base_format' in the MET configuration file for TCDiag.

| *Used by:* TCDiag
Expand Down
6 changes: 3 additions & 3 deletions docs/Users_Guide/wrappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8250,7 +8250,7 @@ METplus Configuration
| :term:`TC_DIAG_NC_CYL_GRID_FLAG`
| :term:`TC_DIAG_NC_DIAG_FLAG`
| :term:`TC_DIAG_CIRA_DIAG_FLAG`
| :term:`TC_DIAG_OUTPUT_PREFIX`
| :term:`TC_DIAG_OUTPUT_BASE_FORMAT`
| :term:`TC_DIAG_SKIP_IF_OUTPUT_EXISTS`
| :term:`TC_DIAG_MET_CONFIG_OVERRIDES`
| :term:`TC_DIAG_SKIP_VALID_TIMES`
Expand Down Expand Up @@ -8715,8 +8715,8 @@ ${METPLUS_OUTPUT_PREFIX}

* - METplus Config(s)
- MET Config File
* - :term:`TC_DIAG_OUTPUT_PREFIX`
- output_prefix
* - :term:`TC_DIAG_OUTPUT_BASE_FORMAT`
- output_base_format

${METPLUS_MET_CONFIG_OVERRIDES}
"""""""""""""""""""""""""""""""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def set_minimum_config_settings(config):
({'TC_DIAG_CIRA_DIAG_FLAG': 'True', }, {'METPLUS_CIRA_DIAG_FLAG': 'cira_diag_flag = TRUE;'}),
({'TC_DIAG_OUTPUT_PREFIX': 'my_prefix', }, {'METPLUS_OUTPUT_PREFIX': 'output_prefix = "my_prefix";'}),
({'TC_DIAG_OUTPUT_BASE_FORMAT': 's{storm_id}_{technique}_doper_{init_ymdh}', }, {'METPLUS_OUTPUT_BASE_FORMAT': 'output_base_format = "s{storm_id}_{technique}_doper_{init_ymdh}";'}),
({'TC_DIAG_ONE_TIME_PER_FILE_FLAG': 'false', },
{'METPLUS_ONE_TIME_PER_FILE_FLAG': 'one_time_per_file_flag = FALSE;'}),
]
Expand Down
5 changes: 3 additions & 2 deletions metplus/wrappers/tc_diag_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ class TCDiagWrapper(RuntimeFreqWrapper):
'METPLUS_NC_DIAG_FLAG',
'METPLUS_NC_CYL_GRID_FLAG',
'METPLUS_CIRA_DIAG_FLAG',
'METPLUS_OUTPUT_PREFIX',
'METPLUS_OUTPUT_BASE_FORMAT',
'METPLUS_ONE_TIME_PER_FILE_FLAG',
]

# deprecated env vars that are no longer supported in the wrapped MET conf
DEPRECATED_WRAPPER_ENV_VAR_KEYS = [
'OUTPUT_PREFIX',
'METPLUS_OUTPUT_PREFIX',
]

def __init__(self, config, instance=None):
Expand Down Expand Up @@ -232,7 +233,7 @@ def create_c_dict(self):
self.add_met_config(name='nc_diag_flag', data_type='bool')
self.add_met_config(name='cira_diag_flag', data_type='bool')

self.add_met_config(name='output_prefix', data_type='string')
self.add_met_config(name='output_base_format', data_type='string')

return c_dict

Expand Down
4 changes: 2 additions & 2 deletions parm/met_config/TCDiagConfig_wrapped
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ ${METPLUS_CIRA_DIAG_FLAG}

tmp_dir = "${MET_TMP_DIR}";

//output_prefix =
${METPLUS_OUTPUT_PREFIX}
//output_base_format =
${METPLUS_OUTPUT_BASE_FORMAT}

//version = "V11.1.0";

Expand Down
2 changes: 1 addition & 1 deletion parm/use_cases/met_tool_wrapper/TCDiag/TCDiag.conf
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ TC_DIAG_DOMAIN_INFO2_DELTA_RANGE_KM = 2.0
#TC_DIAG_NC_CYL_GRID_FLAG =
#TC_DIAG_NC_DIAG_FLAG =
#TC_DIAG_CIRA_DIAG_FLAG =
#TC_DIAG_OUTPUT_PREFIX =
#TC_DIAG_OUTPUT_BASE_FORMAT =

#LOG_LEVEL=DEBUG

0 comments on commit 139cbd5

Please sign in to comment.