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

Correct the tc_gen BEST track genesis event definition. #1447

Closed
18 tasks done
JohnHalleyGotway opened this issue Aug 7, 2020 · 2 comments · Fixed by #1449
Closed
18 tasks done

Correct the tc_gen BEST track genesis event definition. #1447

JohnHalleyGotway opened this issue Aug 7, 2020 · 2 comments · Fixed by #1449
Assignees
Labels
requestor: NCAR National Center for Atmospheric Research type: enhancement Improve something that it is currently doing
Milestone

Comments

@JohnHalleyGotway
Copy link
Collaborator

JohnHalleyGotway commented Aug 7, 2020

Describe the Enhancement

Dan Halperin did more testing of the tc_gen tool with the met-9.1_beta3 development release and found a bug. tc_gen is not identifying genesis at the correct point for BEST tracks. Test this using bal022019.dat. The BEST track genesis is identified when the storm is a disturbance (category=DB) rather than the correct time when it is a tropical depression (category=TD), as requested in the TC-Gen configuration file:

best_genesis = {
   technique   = "BEST";
   category    = [ "TD", "TS" ];
   vmax_thresh = NA;
   mslp_thresh = NA;
}

Time Estimate

1 day.

Sub-Issues

Consider breaking the enhancement down into sub-issues.
No sub-issues required.

Relevant Deadlines

None.

Funding Source

Define the Metadata

Assignee

  • Select engineer(s) or no engineer required: John Halley Gotway
  • Select scientist(s) or no scientist required: Kathryn Newman

Labels

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

Projects and Milestone

  • Review projects and select relevant Repository and Organization ones
  • Select milestone

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

  • Complete the issue definition above.
  • Fork this repository or create a branch of develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the development and test your changes.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into develop.
    Pull request: feature <Issue Number> <Description>
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.
@JohnHalleyGotway JohnHalleyGotway added type: enhancement Improve something that it is currently doing priority: high requestor: NCAR National Center for Atmospheric Research labels Aug 7, 2020
@JohnHalleyGotway JohnHalleyGotway added this to the MET 9.1 milestone Aug 7, 2020
@JohnHalleyGotway
Copy link
Collaborator Author

Input from Dan H showing examples of bug (1) where genesis is identified at the wrong time:

image

@JohnHalleyGotway JohnHalleyGotway changed the title Fix bugs in tc_gen identifying BEST track genesis events. Correct tc_gen BEST track genesis event definition and matching logic. Aug 7, 2020
@JohnHalleyGotway
Copy link
Collaborator Author

JohnHalleyGotway commented Aug 7, 2020

I found the bug in tc_gen.cc on this line:

https://github.com/NCAR/MET/blob/10c4da8ba90c5f85416ae86a0e68c1ab29d1a0ce/met/src/tools/tc_utils/tc_gen/tc_gen.cc#L588

This adds the track to the list of Genesis events without specifying the track point at which genesis actually occurred. The library code just chooses the first track point. Instead, pass a second argument indicating the genesis track point.

Used this BEST track to test:
bal022019.txt

Prior to the fix, GenesisTime = "20190710_120000":

DEBUG 6: |    [1] GenesisInfo: IsSet = true, IsBest = true, IsOper = false, IsAnly = false, StormId = "AL022019", Basin = "AL", Cyclone = "02", StormName = "BARRY", TechniqueNumber = -9999, Technique = "BEST", Initials = "(nul)", GenesisTime = "20190710_120000", InitTime = "NA", LeadTime = "000000", Lat = 28.50000, Lon = -86.50000, DLand = 92.24668, NPoints = 25, MinValidTime = "20190710_120000", MaxValidTime = "20190716_060000", MinWarmCoreTime = "NA", MaxWarmCoreTime = "NA"

After the fix, GenesisTime = "20190711_000000":

DEBUG 6: |    [1] GenesisInfo: IsSet = true, IsBest = true, IsOper = false, IsAnly = false, StormId = "AL022019", Basin = "AL", Cyclone = "02", StormName = "BARRY", TechniqueNumber = -9999, Technique = "BEST", Initials = "(nul)", GenesisTime = "20190711_000000", InitTime = "NA", LeadTime = "000000", Lat = 27.80000, Lon = -87.60000, DLand = 118.85302, NPoints = 25, MinValidTime = "20190710_120000", MaxValidTime = "20190716_060000", MinWarmCoreTime = "NA", MaxWarmCoreTime = "NA"

And that matches the time and location of the first instance of category = TD in the ATCF input file:

AL, 02, 2019071100,   , BEST,   0, 278N,  876W,  30, 1008, TD,   0,    ,    0,    0,    0,    0, 1013,  180,  80,  35,   0,   L,   0,    ,   0,   0,        TWO, M,  0,    ,    0,    0,    0,    0, genesis-num, 005,

JohnHalleyGotway added a commit that referenced this issue Aug 7, 2020
…enesis occurred at the first point of the track. Instead, update tc_gen to keep track of the actual genesis track point... i.e. the first track point at which all genesis event criteria are satisfied.
@JohnHalleyGotway JohnHalleyGotway changed the title Correct tc_gen BEST track genesis event definition and matching logic. Correct the tc_gen BEST track genesis event definition. Aug 7, 2020
@JohnHalleyGotway JohnHalleyGotway linked a pull request Aug 7, 2020 that will close this issue
JohnHalleyGotway added a commit that referenced this issue Aug 7, 2020
…enesis occurred at the first point of the track. Instead, update tc_gen to keep track of the actual genesis track point... i.e. the first track point at which all genesis event criteria are satisfied. (#1449)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requestor: NCAR National Center for Atmospheric Research type: enhancement Improve something that it is currently doing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants