dtcenter / MET

Model Evaluation Tools
https://dtcenter.org/community-code/model-evaluation-tools-met
Apache License 2.0
74 stars 22 forks source link

Enhance TC-Stat to support the `-set_hdr` job command option #2911

Closed JohnHalleyGotway closed 2 weeks ago

JohnHalleyGotway commented 3 weeks ago

Describe the Enhancement

This issue arose from @mollybsmith-noaa via the dtcenter/METplus#2608 discussion. While the Stat-Analysis tool supports the -set_hdr job command option, the TC-Stat tool does not. This issue to enhance TC-Stat to add that support.

Run the following job on output from the MET unit tests to demonstrate what's needed:

./tc_stat -lookin test_output/tc_pairs -job rirw -line_type TCMPR -by CYCLONE -out_line_type CTC -out_stat ctc.stat -set_hdr DESC CYCLONE

That produces the following error message:

ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char *jobstring) -> unsupported job command options "-set_hdr DESC CYCLONE".

The task is to enhance TC-Stat to support -set_hdr so that the job listed above works.

Note that this may be a little tricky since TC-Stat writes both .stat and .tcst output files. Ideally, the -set_hdr option would work for both types of output.

Time Estimate

2 days

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

Labels

Milestone and Projects

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

JohnHalleyGotway commented 3 weeks ago

Remember to do the following: