Skip to content

Enhancement: Support months and years in lead filename template tags #3008

@j-opatz

Description

@j-opatz

Describe the New Feature

In Python, time deltas that are relative (for example, one month) are stored as a separate data type. As a result, when using a relative time for LEAD_SEQ, METplus is unable to provide a user the length of time of the lead.

This can be an issue for users attempting to Python embedding on these relative lead times, as the lead times passed to the script via {lead?fmt=%m} will return the literal string in LEAD_SEQ.

This new feature would take the contextual timing information and put relative leads into non-relative timing information (days, hours, seconds, etc.). This would allow users access to the specific lead time being evaluated, enhancing their scripting ability.

Acceptance Testing

A completed feature would return "01" for a {lead?fmt=%m} and a LEAD_SEQ = 1m.
Additional relative timing leads will also be tested.

Time Estimate

Estimate the amount of work required here.
Issues should represent approximately 1 to 3 days of work.

Sub-Issues

Consider breaking the new feature down into sub-issues.

  • Add a checkbox for each sub-issue here.

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

John O. will provide relevant funding via CPC/STORM sources.

Define the Metadata

Assignee

  • Select engineer(s) or no engineer required
  • Select scientist(s) or no scientist required

Labels

  • Review default alert labels
  • Select component(s)
  • Select priority
  • Select requestor(s)

Milestone and Projects

  • Select Milestone as a METplus-Wrappers-X.Y.Z version, Consider for Next Release, or Backlog of Development Ideas
  • For a METplus-Wrappers-X.Y.Z version, select the METplus-Wrappers-X.Y.Z Development project

Define Related Issue(s)

Consider the impact to the other METplus components.

New Feature 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 develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the development and test your changes.
  • Add/update log messages for easier debugging.
  • Add/update unit tests.
  • Add/update documentation.
  • Add any new Python packages to the METplus Components Python Requirements table.
  • For any new datasets, an entry to the METplus Verification Datasets Guide.
  • Push local changes to GitHub.
  • Submit a pull request to merge into develop.
    Pull request: feature <Issue Number> <Description>
  • Define the pull request metadata, as permissions allow.
    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
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.

Metadata

Metadata

Type

No type

Projects

Status

🏁 Done

Relationships

None yet

Development

No branches or pull requests

Issue actions