Fix the MET library code to correctly parse timing information from Grid-Stat NetCDF matched pairs output files. #2040
Labels
MET: Library Code
priority: blocker
Blocker
reporting: DTC NCAR Base
NCAR Base DTC Project
reporting: DTC NOAA BASE
NOAA Office of Atmospheric Research DTC Project
requestor: NOAA/EMC
NOAA Environmental Modeling Center
required: FOR OFFICIAL RELEASE
Required to be completed in the official release for the assigned milestone
type: bug
Fix something that is not working
Milestone
Describe the Problem
This issue arose via GitHub discussions in dtcenter/METplus#1400. The MET library code is not correctly parsing the timing information from the NetCDF matched pairs output files generated by Grid-Stat. While the valid time is consistently correct, the initialization and lead times are not.
Recommend reviewing and revising the MET NetCDF library code logic.
Expected Behavior
The MET tools should parsing timing information from each variable which matches the timing information visible by running ncdump -h.
Environment
Describe your runtime environment:
1. Machine: First found on Linux but repeated on a Mac laptop
2. OS: (e.g. RedHat Linux, MacOS)
3. Software version number(s): identified with MET version 10.0.0 as well as the latest version of the develop branch
To Reproduce
Describe the steps to reproduce the behavior:
1. Use a NetCDF matched pairs file generated by running "make test" to demonstrate
2. Do a NetCDF header dump to see the forecast variable timing info:
3. Note this timing info:
4. Plot this variable with plot_data_plane and -v 4:
5. Note that the timing info DOES NOT match the header dump above. The init and lead times are wrong:
Relevant Deadlines
Fix for MET version 10.1.0. Ideally, also provide a bugfix for 10.0.0 in the main_v10.0 branch.
Funding Source
2792541 and 2702691
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_main_<Version>_<Description>
Pull request:
bugfix <Issue Number> main_<Version> <Description>
Select: Reviewer(s) and Linked issues
Select: Organization level software support Project for the current coordinated release
Select: Milestone as the next bugfix version
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: