Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MTD to compute the CDIST_TRAVELLED value correctly. #1976

Closed
22 tasks done
CPKalb opened this issue Nov 18, 2021 · 0 comments · Fixed by #1978, #1979, #1981 or #1982
Closed
22 tasks done

Fix MTD to compute the CDIST_TRAVELLED value correctly. #1976

CPKalb opened this issue Nov 18, 2021 · 0 comments · Fixed by #1978, #1979, #1981 or #1982
Assignees
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

Comments

@CPKalb
Copy link

CPKalb commented Nov 18, 2021

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:

  1. Machine: Linux Workstation (aerial)
  2. OS: Debian GNU/Linux 9.13 (stretch)
  3. Lines 1319 - 1336, https://github.com/dtcenter/MET/blob/main_v10.0/met/src/tools/other/mode_time_domain/3d_att.cc

To Reproduce

  1. Run mtd (mtd -single mtd_file_list_test.txt -config MTDConfig_SKM_python_ALP3i_MOHC_HadREM3_rcp85_prltTH05_rsmoo8_tsmoo1_minvol1000_oooo)
  2. Object F001 has a computed cdist_travelled of 354.691
  3. Compute the great circle distance between successive centroid lat/lons, using mtd_ALP-3i_MOHC_HadREM3_rcp85_prltTH05_rsmoo8_tsmoo1_minvol1000_oooo__20960314_000000V_2d.txt . The value computed externally is approximately 252 (using a constant earth radius of 6371)

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

  • Select engineer(s) or no engineer required
  • Select scientist(s) or no scientist required: Tina to review

Labels

  • Select component(s)
  • Select priority
  • Select requestor(s)

Projects and Milestone

  • Select Organization level Project for support of the current coordinated release
  • Select Repository level Project for development toward the next official release or add alert: NEED PROJECT ASSIGNMENT label
  • Select Milestone as the next bugfix version

Define Related Issue(s)

Consider the impact to the other METplus components.

Bugfix Checklist

See the METplus Workflow 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>
  • Fix the bug and test your changes.
  • Add/update log messages for easier debugging.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into main_<Version>.
    Pull request: bugfix <Issue Number> main_<Version> <Description>
  • Define the pull request metadata, as permissions allow.
    Select: Reviewer(s) and Linked issues
    Select: Organization level software support Project for the current coordinated release
    Select: Milestone as the next bugfix version
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Complete the steps above to fix the bug on the develop branch.
    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
  • Close this issue.
@CPKalb CPKalb added type: bug Fix something that is not working alert: NEED MORE DEFINITION Not yet actionable, additional definition required alert: NEED ACCOUNT KEY Need to assign an account key to this issue alert: NEED CYCLE ASSIGNMENT Need to assign to a release development cycle labels Nov 18, 2021
@CPKalb CPKalb changed the title MTD cdist_travelled uses the centroid lat/lon of the first time, in the cdist_travelled calculations for all timesteps MTD cdist_travelled uses the centroid lat/lon of the first time in the cdist_travelled calculations for all timesteps Nov 18, 2021
@JohnHalleyGotway JohnHalleyGotway added this to the met-10.0.1 (bugfix) milestone Nov 18, 2021
@JohnHalleyGotway JohnHalleyGotway self-assigned this Nov 18, 2021
@JohnHalleyGotway JohnHalleyGotway removed alert: NEED MORE DEFINITION Not yet actionable, additional definition required alert: NEED CYCLE ASSIGNMENT Need to assign to a release development cycle labels Nov 18, 2021
JohnHalleyGotway added a commit that referenced this issue Nov 19, 2021
JohnHalleyGotway added a commit that referenced this issue Nov 19, 2021
@JohnHalleyGotway JohnHalleyGotway linked a pull request Nov 19, 2021 that will close this issue
14 tasks
@JohnHalleyGotway JohnHalleyGotway removed the alert: NEED ACCOUNT KEY Need to assign an account key to this issue label Nov 19, 2021
@JohnHalleyGotway JohnHalleyGotway linked a pull request Nov 19, 2021 that will close this issue
14 tasks
@JohnHalleyGotway JohnHalleyGotway linked a pull request Nov 23, 2021 that will close this issue
14 tasks
@JohnHalleyGotway JohnHalleyGotway linked a pull request Nov 23, 2021 that will close this issue
14 tasks
@JohnHalleyGotway JohnHalleyGotway changed the title MTD cdist_travelled uses the centroid lat/lon of the first time in the cdist_travelled calculations for all timesteps Fix MTD to compute the CDIST_TRAVELLED value correctly. Dec 1, 2021
@TaraJensen TaraJensen added reporting: DTC NCAR Base NCAR Base DTC Project reporting: DTC NOAA BASE NOAA Office of Atmospheric Research DTC Project labels Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
3 participants