Fix MTD to compute the CDIST_TRAVELLED value correctly. #1976
Labels
MET: Grid-to-Grid Verification
priority: blocker
Blocker
reporting: DTC NCAR Base
NCAR Base DTC Project
reporting: DTC NOAA BASE
NOAA Office of Atmospheric Research DTC Project
requestor: Community
General Community
type: bug
Fix something that is not working
Milestone
Describe the Problem
In the calculation of cdist_travelled, x_old and y_old are set in the first loop iteration as the values of xbar_2d and ybar_2d. However, these values don't change in successive iterations of the loop. This results in the distance being calculated using the starting centroid lat/lon rather than the centroid lat/lon of the previous time step, giving a cdist_travelled that is too large.
Expected Behavior
x_old and y_old should use the values of xbar_2d and ybar_2d from the previous loop iteration.
Environment
Describe your runtime environment:
To Reproduce
Post relevant sample data following these instructions:*
The sample data is on seneca in /d1/projects/METplus/discussions/1249
Relevant Deadlines
MET 10.1.0-beta5
Funding Source
2702691
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
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: