Skip to content

Commit

Permalink
Update Develop-ref after dtcenter/MET#1857 (#1097)
Browse files Browse the repository at this point in the history
Co-authored-by: George McCabe <mccabe@ucar.edu>
Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com>
Co-authored-by: johnhg <johnhg@ucar.edu>
Co-authored-by: George McCabe <mccabe@dakota.rap.ucar.edu>
Co-authored-by: Keith Searight <searight@ucar.edu>
Co-authored-by: Hank Fisher <fisherh@kiowa.rap.ucar.edu>
Co-authored-by: MET Tools Test Account <met_test@kiowa.rap.ucar.edu>
Co-authored-by: Julie.Prestopnik <jpresto@ucar.edu>
Co-authored-by: Lisa Goodrich <lisag@ucar.edu>
Co-authored-by: jprestop <jpresto@ucar.edu>
Co-authored-by: bikegeek <minnawin@ucar.edu>
Co-authored-by: John Halley Gotway <johnhg@ucar.edu>
Co-authored-by: Minna Win <minnawin@kiowa.rap.ucar.edu>
Co-authored-by: Daniel Adriaansen <dadriaan@ucar.edu>
Co-authored-by: Christina Kalb <kalb@ucar.edu>
Co-authored-by: George McCabe <mccabe@cheyenne1.cheyenne.ucar.edu>
Co-authored-by: George McCabe <mccabe@cheyenne5.cheyenne.ucar.edu>
Co-authored-by: George McCabe <mccabe@cheyenne4.cheyenne.ucar.edu>
Co-authored-by: Christina Kalb <kalb@kiowa.rap.ucar.edu>
Co-authored-by: bikegeek <3753118+bikegeek@users.noreply.github.com>
Co-authored-by: j-opatz <59586397+j-opatz@users.noreply.github.com>
Co-authored-by: Dan Adriaansen <dadriaan@ucar.edu>
Co-authored-by: mrinalbiswas <biswas@ucar.edu>
Co-authored-by: Keith Searight <keith.searight@noaa.gov>
Co-authored-by: Molly Smith <molly.b.smith@noaa.gov>
Co-authored-by: Hank Fisher <fisherh@ucar.edu>
Co-authored-by: Tatiana Burek <tatiana@ucar.edu>
Co-authored-by: Venita Hagerty <38571614+venitahagerty@users.noreply.github.com>
Co-authored-by: lisagoodrich <33230218+lisagoodrich@users.noreply.github.com>
Co-authored-by: George McCabe <mccabe@seneca.rap.ucar.edu>
  • Loading branch information
27 people authored Aug 20, 2021
1 parent b91158f commit 0ef5cae
Show file tree
Hide file tree
Showing 32 changed files with 166 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Consider the impact to the other METplus components.
- [ ] [METplus](https://github.com/dtcenter/METplus/issues/new/choose), [MET](https://github.com/dtcenter/MET/issues/new/choose), [METdatadb](https://github.com/dtcenter/METdatadb/issues/new/choose), [METviewer](https://github.com/dtcenter/METviewer/issues/new/choose), [METexpress](https://github.com/dtcenter/METexpress/issues/new/choose), [METcalcpy](https://github.com/dtcenter/METcalcpy/issues/new/choose), [METplotpy](https://github.com/dtcenter/METplotpy/issues/new/choose)

## Bugfix Checklist ##
See the [METplus Workflow](https://dtcenter.github.io/METplus/Contributors_Guide/github_workflow.html) for details.
See the [METplus Workflow](https://metplus.readthedocs.io/en/latest/Contributors_Guide/github_workflow.html) for details.
- [ ] Complete the issue definition above, including the **Time Estimate** and **Funding Source**.
- [ ] Fork this repository or create a branch of **main_\<Version>**.
Branch name: `bugfix_<Issue Number>_main_<Version>_<Description>`
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/enhancement_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Consider the impact to the other METplus components.
- [ ] [METplus](https://github.com/dtcenter/METplus/issues/new/choose), [MET](https://github.com/dtcenter/MET/issues/new/choose), [METdatadb](https://github.com/dtcenter/METdatadb/issues/new/choose), [METviewer](https://github.com/dtcenter/METviewer/issues/new/choose), [METexpress](https://github.com/dtcenter/METexpress/issues/new/choose), [METcalcpy](https://github.com/dtcenter/METcalcpy/issues/new/choose), [METplotpy](https://github.com/dtcenter/METplotpy/issues/new/choose)

## Enhancement Checklist ##
See the [METplus Workflow](https://dtcenter.github.io/METplus/Contributors_Guide/github_workflow.html) for details.
See the [METplus Workflow](https://metplus.readthedocs.io/en/latest/Contributors_Guide/github_workflow.html) for details.
- [ ] Complete the issue definition above, including the **Time Estimate** and **Funding Source**.
- [ ] Fork this repository or create a branch of **develop**.
Branch name: `feature_<Issue Number>_<Description>`
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/new_feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Consider the impact to the other METplus components.
- [ ] [METplus](https://github.com/dtcenter/METplus/issues/new/choose), [MET](https://github.com/dtcenter/MET/issues/new/choose), [METdatadb](https://github.com/dtcenter/METdatadb/issues/new/choose), [METviewer](https://github.com/dtcenter/METviewer/issues/new/choose), [METexpress](https://github.com/dtcenter/METexpress/issues/new/choose), [METcalcpy](https://github.com/dtcenter/METcalcpy/issues/new/choose), [METplotpy](https://github.com/dtcenter/METplotpy/issues/new/choose)

## New Feature Checklist ##
See the [METplus Workflow](https://dtcenter.github.io/METplus/Contributors_Guide/github_workflow.html) for details.
See the [METplus Workflow](https://metplus.readthedocs.io/en/latest/Contributors_Guide/github_workflow.html) for details.
- [ ] Complete the issue definition above, including the **Time Estimate** and **Funding source**.
- [ ] Fork this repository or create a branch of **develop**.
Branch name: `feature_<Issue Number>_<Description>`
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/new_use_case.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Consider the impact to the other METplus components.
- [ ] [METplus](https://github.com/dtcenter/METplus/issues/new/choose), [MET](https://github.com/dtcenter/MET/issues/new/choose), [METdatadb](https://github.com/dtcenter/METdatadb/issues/new/choose), [METviewer](https://github.com/dtcenter/METviewer/issues/new/choose), [METexpress](https://github.com/dtcenter/METexpress/issues/new/choose), [METcalcpy](https://github.com/dtcenter/METcalcpy/issues/new/choose), [METplotpy](https://github.com/dtcenter/METplotpy/issues/new/choose)

## New Use Case Checklist ##
See the [METplus Workflow](https://dtcenter.github.io/METplus/Contributors_Guide/github_workflow.html) for details.
See the [METplus Workflow](https://metplus.readthedocs.io/en/latest/Contributors_Guide/github_workflow.html) for details.
- [ ] Complete the issue definition above, including the **Time Estimate** and **Funding source**.
- [ ] Fork this repository or create a branch of **develop**.
Branch name: `feature_<Issue Number>_<Description>`
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Consider the impact to the other METplus components.
- [ ] [METplus](https://github.com/dtcenter/METplus/issues/new/choose), [MET](https://github.com/dtcenter/MET/issues/new/choose), [METdatadb](https://github.com/dtcenter/METdatadb/issues/new/choose), [METviewer](https://github.com/dtcenter/METviewer/issues/new/choose), [METexpress](https://github.com/dtcenter/METexpress/issues/new/choose), [METcalcpy](https://github.com/dtcenter/METcalcpy/issues/new/choose), [METplotpy](https://github.com/dtcenter/METplotpy/issues/new/choose)

## Task Checklist ##
See the [METplus Workflow](https://dtcenter.github.io/METplus/Contributors_Guide/github_workflow.html) for details.
See the [METplus Workflow](https://metplus.readthedocs.io/en/latest/Contributors_Guide/github_workflow.html) for details.
- [ ] Complete the issue definition above, including the **Time Estimate** and **Funding Source**.
- [ ] Fork this repository or create a branch of **develop**.
Branch name: `feature_<Issue Number>_<Description>`
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If **yes**, describe the new output and/or changes to the existing output:</br>
- [ ] Please complete this pull request review by **[Fill in date]**.</br>

## Pull Request Checklist ##
See the [METplus Workflow](https://dtcenter.github.io/METplus/Contributors_Guide/github_workflow.html) for details.
See the [METplus Workflow](https://metplus.readthedocs.io/en/latest/Contributors_Guide/github_workflow.html) for details.
- [ ] Complete the PR definition above.
- [ ] Ensure the PR title matches the feature or bugfix branch name.
- [ ] Define the PR metadata, as permissions allow.
Expand Down
2 changes: 1 addition & 1 deletion docs/Contributors_Guide/add_use_case.rst
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ If you do not, upload the files to the RAL FTP::

For an example on how to upload data to the ftp site see
“How to Send Us Data” on the
`MET Help Webpage <https://dtcenter.org/community-code/model-evaluation-tools-met/met-help-desk>`_.
`Resources for Troubleshooting page <https://github.com/dtcenter/METplus/discussions/954>`_.

Adding new data to full sample data tarfile
-------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Update the version number in the quick search links:
* Open the docs/Users_Guide/quicksearch.rst file for editing.
* Replace the word "develop" in all of the links with "vX.Y.Z", replacing the X.Y.Z with the version number. For example, replace "develop" with "v4.0.0".
* Save and close the file.

In docs/conf.py, update the version, release_year, and release_date variables for the documentation.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Remove **-dev** from the version number:
* The file containing the version number is located at docs/version.
* In the develop branch, the version should match the upcoming release with -dev added to the end like X.Y.Z-betaN-dev, i.e. 4.0.0-beta1-dev
* Remove **-dev** from the version number so that it matches the release you are creating.

In docs/conf.py, update the version, release_year, and release_date variables for the documentation.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Update the version number in the quick search links:
* Open the docs/Users_Guide/quicksearch.rst file for editing.
* Replace the word "develop" in all of the links with "vX.Y.Z", replacing the X.Y.Z with the version number. For example, replace "develop" with "v4.0.0".
* Save and close the file.

In docs/conf.py, update the version, release_year, and release_date variables for the documentation.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ Remove **-dev** from the version number:
* In the METviewer/vebapp/metviewer/metviewer1.jsp file, assign the version to <div id='release'> and <title>

* Save and close the file.

In docs/conf.py, update the version, release_year, and release_date variables for the documentation.
27 changes: 27 additions & 0 deletions docs/Users_Guide/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7838,3 +7838,30 @@ METplus Configuration Glossary
See :term:`GFDL_TRACKER_NML_TEMPLATE_FILE`.

| *Used by:* GFDLTracker
GRID_STAT_HSS_EC_VALUE
Specify the value for 'hss_ec_value' in the MET configuration file for GridStat.

| *Used by:* GridStat
POINT_STAT_HSS_EC_VALUE
Specify the value for 'hss_ec_value' in the MET configuration file for PointStat.

| *Used by:* PointStat
SERIES_ANALYSIS_HSS_EC_VALUE
Specify the value for 'hss_ec_value' in the MET configuration file for SeriesAnalysis.

| *Used by:* SeriesAnalysis
STAT_ANALYSIS_HSS_EC_VALUE
Specify the value for 'hss_ec_value' in the MET configuration file for StatAnalysis.

| *Used by:* StatAnalysis
TCMPR_PLOTTER_READ_ALL_FILES
If True, pass in input directory set by :term:`TCMPR_PLOTTER_TCMPR_DATA_DIR`
to the script. If False, a list of all files that end with .tcst in the input
directory is gathered and passed into the script. Defaults to False.

| *Used by:* TCMPRPlotter
52 changes: 52 additions & 0 deletions docs/Users_Guide/wrappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2385,6 +2385,7 @@ METplus Configuration
| :term:`GRID_STAT_CLIMO_STDEV_MATCH_MONTH`
| :term:`GRID_STAT_CLIMO_STDEV_DAY_INTERVAL`
| :term:`GRID_STAT_CLIMO_STDEV_HOUR_INTERVAL`
| :term:`GRID_STAT_HSS_EC_VALUE`
| :term:`GRID_STAT_MASK_GRID` (optional)
| :term:`GRID_STAT_MASK_POLY` (optional)
| :term:`GRID_STAT_MET_CONFIG_OVERRIDES`
Expand Down Expand Up @@ -2821,6 +2822,17 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`GRID_STAT_GRID_WEIGHT_FLAG`
- grid_weight_flag

**${METPLUS_HSS_EC_VALUE}**

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

* - METplus Config(s)
- MET Config File
* - :term:`GRID_STAT_HSS_EC_VALUE`
- hss_ec_value


.. _make_plots_wrapper:

Expand Down Expand Up @@ -4476,6 +4488,7 @@ Configuration
| :term:`POINT_STAT_CLIMO_STDEV_MATCH_MONTH`
| :term:`POINT_STAT_CLIMO_STDEV_DAY_INTERVAL`
| :term:`POINT_STAT_CLIMO_STDEV_HOUR_INTERVAL`
| :term:`POINT_STAT_HSS_EC_VALUE`
| :term:`FCST_POINT_STAT_WINDOW_BEGIN` (optional)
| :term:`FCST_POINT_STAT_WINDOW_END` (optional)
| :term:`OBS_POINT_STAT_WINDOW_BEGIN` (optional)
Expand Down Expand Up @@ -4847,6 +4860,17 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`POINT_STAT_INTERP_TYPE_WIDTH`
- interp.type.width

**${METPLUS_HSS_EC_VALUE}**

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

* - METplus Config(s)
- MET Config File
* - :term:`POINT_STAT_HSS_EC_VALUE`
- hss_ec_value


.. _py_embed_ingest_wrapper:

Expand Down Expand Up @@ -5003,6 +5027,7 @@ METplus Configuration
| :term:`SERIES_ANALYSIS_CLIMO_STDEV_MATCH_MONTH`
| :term:`SERIES_ANALYSIS_CLIMO_STDEV_DAY_INTERVAL`
| :term:`SERIES_ANALYSIS_CLIMO_STDEV_HOUR_INTERVAL`
| :term:`SERIES_ANALYSIS_HSS_EC_VALUE`
|
.. warning:: **DEPRECATED:**
Expand Down Expand Up @@ -5271,6 +5296,18 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`SERIES_ANALYSIS_MET_CONFIG_OVERRIDES`
- n/a

**${METPLUS_HSS_EC_VALUE}**

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

* - METplus Config(s)
- MET Config File
* - :term:`SERIES_ANALYSIS_HSS_EC_VALUE`
- hss_ec_value


SeriesByInit
============

Expand Down Expand Up @@ -5351,6 +5388,7 @@ configuration file for running with LOOP_ORDER = times:
| :term:`COV_THRESH_LIST`
| :term:`LINE_TYPE_LIST`
| :term:`STAT_ANALYSIS_SKIP_IF_OUTPUT_EXISTS`
| :term:`STAT_ANALYSIS_HSS_EC_VALUE`
|
The following values **must** be defined in the METplus Wrappers
Expand Down Expand Up @@ -5387,6 +5425,7 @@ file for running with LOOP_ORDER = processes:
| :term:`INTERP_PNTS_LIST`
| :term:`COV_THRESH_LIST`
| :term:`ALPHA_LIST`
| :term:`STAT_ANALYSIS_HSS_EC_VALUE`
|
.. warning:: **DEPRECATED:**
Expand Down Expand Up @@ -5812,6 +5851,18 @@ see :ref:`How METplus controls MET config file settings<metplus-control-met>`.
* - :term:`STAT_ANALYSIS_MET_CONFIG_OVERRIDES`
- n/a

**${METPLUS_HSS_EC_VALUE}**

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

* - METplus Config(s)
- MET Config File
* - :term:`STAT_ANALYSIS_HSS_EC_VALUE`
- hss_ec_value


.. _tc_gen_wrapper:

TCGen
Expand Down Expand Up @@ -6466,6 +6517,7 @@ METplus Configuration
| :term:`TCMPR_PLOTTER_SAVE_DATA`
| :term:`TCMPR_PLOTTER_DEP_LABELS`
| :term:`TCMPR_PLOTTER_PLOT_LABELS`
| :term:`TCMPR_PLOTTER_READ_ALL_FILES`
|
The following are TCMPR flags, if set to 'no', then don't set flag, if
Expand Down
2 changes: 2 additions & 0 deletions internal_tests/pytests/grid_stat/test_grid_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ def test_handle_climo_file_variables(metplus_config, config_overrides,
{'METPLUS_FCST_FILE_TYPE': 'file_type = NETCDF_NCCF;'}),
({'OBS_GRID_STAT_FILE_TYPE': 'NETCDF_NCCF', },
{'METPLUS_OBS_FILE_TYPE': 'file_type = NETCDF_NCCF;'}),
({'GRID_STAT_HSS_EC_VALUE': '0.5', },
{'METPLUS_HSS_EC_VALUE': 'hss_ec_value = 0.5;'}),
]
)
Expand Down
3 changes: 3 additions & 0 deletions internal_tests/pytests/point_stat/test_point_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ def test_met_dictionary_in_var_options(metplus_config):
'match_month = TRUE;day_interval = 30;'
'hour_interval = 12;}'),
'CLIMO_STDEV_FILE': '"/some/climo_stdev/file.txt"'}),
({'POINT_STAT_HSS_EC_VALUE': '0.5', },
{'METPLUS_HSS_EC_VALUE': 'hss_ec_value = 0.5;'}),
]
)
def test_point_stat_all_fields(metplus_config, config_overrides,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def set_minimum_config_settings(config):
'match_month = TRUE;day_interval = 30;'
'hour_interval = 12;}'),
'CLIMO_STDEV_FILE': '"/some/climo_stdev/file.txt"'}),
({'SERIES_ANALYSIS_HSS_EC_VALUE': '0.5', },
{'METPLUS_HSS_EC_VALUE': 'hss_ec_value = 0.5;'}),
]
)
def test_series_analysis_single_field(metplus_config, config_overrides,
Expand Down
24 changes: 18 additions & 6 deletions metplus/util/config_metplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,20 @@
PARM_BASE = os.environ.get('METPLUS_PARM_BASE',
os.path.join(METPLUS_BASE, 'parm'))

# name of directory under PARM_BASE that contains defaults
METPLUS_CONFIG_DIR = 'metplus_config'

# default METplus configuration files that are sourced first
BASE_CONFS = [
'metplus_config/defaults.conf',
'defaults.conf',
]

# support previous location of default config files
OLD_BASE_CONFS = [
'metplus_config/metplus_system.conf',
'metplus_config/metplus_data.conf',
'metplus_config/metplus_runtime.conf',
'metplus_config/metplus_logging.conf'
'metplus_system.conf',
'metplus_data.conf',
'metplus_runtime.conf',
'metplus_logging.conf'
]

def get_default_config_list(parm_base=None):
Expand All @@ -92,12 +95,21 @@ def get_default_config_list(parm_base=None):
if parm_base is None:
parm_base = os.path.realpath(PARM_BASE)

conf_dir = os.path.join(parm_base,
METPLUS_CONFIG_DIR)

# if both are found, set old base confs first so the new takes precedence
for base_conf in OLD_BASE_CONFS + BASE_CONFS:
conf_path = os.path.join(parm_base, base_conf)
conf_path = os.path.join(conf_dir,
base_conf)
if os.path.exists(conf_path):
default_config_list.append(conf_path)

if not default_config_list:
print(f"ERROR: No default config files found in {conf_dir}")
print("Check if METPLUS_PARM_BASE is set and unset it if so")
sys.exit(1)

return default_config_list

def setup(config_inputs, logger=None, base_confs=None):
Expand Down
5 changes: 5 additions & 0 deletions metplus/wrappers/grid_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class GridStatWrapper(CompareGriddedWrapper):
'METPLUS_GRID_WEIGHT_FLAG',
'METPLUS_FCST_FILE_TYPE',
'METPLUS_OBS_FILE_TYPE',
'METPLUS_HSS_EC_VALUE',
]

# handle deprecated env vars used pre v4.0.0
Expand Down Expand Up @@ -226,6 +227,10 @@ def create_c_dict(self):
extra_args={'remove_quotes': True,
'uppercase': True})

self.add_met_config(name='hss_ec_value',
data_type='float',
metplus_configs=['GRID_STAT_HSS_EC_VALUE'])


return c_dict

Expand Down
5 changes: 5 additions & 0 deletions metplus/wrappers/point_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class PointStatWrapper(CompareGriddedWrapper):
'METPLUS_INTERP_DICT',
'METPLUS_CLIMO_MEAN_DICT',
'METPLUS_CLIMO_STDEV_DICT',
'METPLUS_HSS_EC_VALUE',
]

# handle deprecated env vars used pre v4.0.0
Expand Down Expand Up @@ -219,6 +220,10 @@ def create_c_dict(self):
},
)

self.add_met_config(name='hss_ec_value',
data_type='float',
metplus_configs=['POINT_STAT_HSS_EC_VALUE'])

if not c_dict['FCST_INPUT_TEMPLATE']:
self.log_error('Must set FCST_POINT_STAT_INPUT_TEMPLATE '
'in config file')
Expand Down
5 changes: 5 additions & 0 deletions metplus/wrappers/series_analysis_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class SeriesAnalysisWrapper(RuntimeFreqWrapper):
'METPLUS_VLD_THRESH',
'METPLUS_CTS_LIST',
'METPLUS_STAT_LIST',
'METPLUS_HSS_EC_VALUE',
]

# handle deprecated env vars used pre v4.0.0
Expand Down Expand Up @@ -270,6 +271,10 @@ def create_c_dict(self):
# get climatology config variables
self.handle_climo_dict()

self.add_met_config(name='hss_ec_value',
data_type='float',
metplus_configs=['SERIES_ANALYSIS_HSS_EC_VALUE'])

# if no forecast lead sequence is specified,
# use wildcard (*) so all leads are used
c_dict['WILDCARD_LEAD_IF_EMPTY'] = True
Expand Down
5 changes: 5 additions & 0 deletions metplus/wrappers/stat_analysis_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class StatAnalysisWrapper(CommandBuilder):
'METPLUS_ALPHA',
'METPLUS_LINE_TYPE',
'METPLUS_JOBS',
'METPLUS_HSS_EC_VALUE',
]

field_lists = ['FCST_VAR_LIST',
Expand Down Expand Up @@ -225,6 +226,10 @@ def create_c_dict(self):

c_dict = self.set_lists_loop_or_group(c_dict)

self.add_met_config(name='hss_ec_value',
data_type='float',
metplus_configs=['STAT_ANALYSIS_HSS_EC_VALUE'])

return self.c_dict_error_check(c_dict)

def c_dict_error_check(self, c_dict):
Expand Down
Loading

0 comments on commit 0ef5cae

Please sign in to comment.