This came up from disussion #3166.
Currently, the GridDiag wrapper adds each input file with its own -data argument, e.g. -data input1 -data input2.
According to the Required Arguments for grid_diag section of the Grid-Diag Tool chapter of the MET User's Guide:
When -data is used once, all fields are read from each input file. When used multiple times, it must match the number of fields to be processed. In this case the first field in the config data field list is read from the files designated by the first -data, the second field in the field list is read from files designated by the second -data, and so forth. All files within each set must be of the same file type, but the file types of each set may differ. A typical use case for this option is for the first -data to specify forecast data files and the second -data the observation data files.
It is not currently possible to configure the GridDiag wrapper to run with the former configuration, that is to process all fields from each input file.
Describe the Enhancement
Add a GRID_DIAG_PAIRED METplus configuration option to control this behavior.
If unset (default to preserve backwards compatibility) or set to True, then add the -data argument before each input file path to tell the tool to pair the fields (set via BOTH_VAR<n>_NAME/LEVELS) with the files, one-to-one.
If set to False, pass the -data argument once with each file path separated by spaces to tell the tool to run all of the fields from each of the input files.
With these changes, update the METplus documentation:
Time Estimate
~1 day
Sub-Issues
Consider breaking the enhancement down into sub-issues.
Relevant Deadlines
7.0.0
Funding Source
UKMO
Define the Metadata
Assignee
Labels
Milestone and Projects
Define Related Issue(s)
Consider the impact to the other METplus components.
Enhancement Checklist
See the METplus Workflow for details.
This came up from disussion #3166.
Currently, the GridDiag wrapper adds each input file with its own
-dataargument, e.g.-data input1 -data input2.According to the Required Arguments for grid_diag section of the Grid-Diag Tool chapter of the MET User's Guide:
It is not currently possible to configure the GridDiag wrapper to run with the former configuration, that is to process all fields from each input file.
Describe the Enhancement
Add a
GRID_DIAG_PAIREDMETplus configuration option to control this behavior.If unset (default to preserve backwards compatibility) or set to
True, then add the-dataargument before each input file path to tell the tool to pair the fields (set viaBOTH_VAR<n>_NAME/LEVELS) with the files, one-to-one.If set to
False, pass the-dataargument once with each file path separated by spaces to tell the tool to run all of the fields from each of the input files.With these changes, update the METplus documentation:
GRID_DIAG_PAIREDoption behavesBOTH_VAR<n>_andFCST_VAR<n>_so it is clear what can be used by this tool. Consider reviewing other tools in this chapter and add these variables as appropriate.Time Estimate
~1 day
Sub-Issues
Consider breaking the enhancement down into sub-issues.
Relevant Deadlines
7.0.0
Funding Source
UKMO
Define the Metadata
Assignee
Labels
Milestone and Projects
Define Related Issue(s)
Consider the impact to the other METplus components.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>Pull request:
feature <Issue Number> <Description>Select: Reviewer(s) and Development issue
Select: Milestone as the next official version
Select: METplus-Wrappers-X.Y.Z Development project for development toward the next official release