Skip to content

Enhancement: Support the new -aggr command line option in SeriesAnalysis wrapper #2651

@JohnHalleyGotway

Description

@JohnHalleyGotway

Describe the Enhancement

Issue dtcenter/MET#1371 enhances Series-Analysis to aggregate results through time. This is done with the -aggr command line option to specify the location of a previously generated Series-Analysis output file. If provided, Series-Analysis will read contingency table counts and partial sums from that file and aggregate those results with the newly provided pairs prior to computing output statistics.

To facilitate easily writing out ALL columns for those line type to be aggregated, the output_stats dictionary has been updated to support the ALL keyword for the CTC, SL1L12, SAL1L2, and PCT line types. Recommend using that instead of manually specifying the column names... since all are needed for the downstream aggregation logic.

If Series-Analysis is run with the -aggr command line option, and an expected field name is NOT found in that input file, it will error out stating the missing field name.

Please see @JohnHalleyGotway with questions about the -aggr option and/or @mpm-meto with questions about the science and intended use.

Time Estimate

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

Sub-Issues

Consider breaking the enhancement down into sub-issues.
None needed.

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

Define the source of funding and account keys here or state NONE.

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.

Enhancement 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

Assignees

Labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions