-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feature #2425 tc_stat_rirw #2536
Conversation
…supplied. In serialize(), fixed bug for -out_stat option string to use StatFile. In TCStatJobRIRW::do_job(), added code to call do_output(*StatOut). SL ci-skip-all
…t_row and prototype for setup_stat_file(). SL ci-skip-all
…_stat_output. In progress. SL ci-skip-all
…m-row, num-col. SL ci-skip-all
…W:do_job to produce out file and stat file appropriately. SL ci-skip-all
…the file-stream object. Now getting output in the out.stat file. SL ci-skip-all
…at_output. Modified RIRWMapData struct. SL ci-skip-all
…RIRW process_pair() to get the new vars: Init, Lead, Valid. Worked on filling in StatHeader object in do_stat_output. SL
…riptions from input file). SL
…of the shc (StatHdrColumns) object. SL ci-skip-all
…ob to keep track of unique description and headers.
…ut. The DESC column was totally missing!
…E, and VX_MASK columns.
…p couts. Updated do_stat_output for CTS. SL ci-skip-all
…ut_stat option, also added example to rirw jobs. SL
…d stating the number of header columns as being 24. Always want to avoid those sorts of specifics because if/when that number changes, we'll almost definitely forget to update it here.wq
…ncy and using it in the RIRW job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve of these changes. @sethlinden, I would like to merge this PR myself. We have 3 PR's that will change the output. Once they're all reviewed, I'll merge them all and then update the truth dataset only once.
Note that I did make some edits on this branch.
- Removed specifics about the number of STAT header columns that might change in the future.
- Added StringArray::add_uniq(string) and used it in tc_stat_job.cc to reduce the number of LOC.
- Minor whitespace edits for consistent indents.
@JohnHalleyGotway thanks for the edits and small changes...they all look good and reasonable to me. |
Co-authored-by: jprestop <jpresto@ucar.edu> Co-authored-by: John Halley Gotway <johnhg@ucar.edu> Co-authored-by: Seth Linden <linden@seneca.rap.ucar.edu> Co-authored-by: Daniel Adriaansen <dadriaan@ucar.edu> Co-authored-by: hsoh-u <hsoh@ucar.edu> Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com> Co-authored-by: johnhg <johnhg@ucar.edu> Co-authored-by: Howard Soh <hsoh@seneca.rap.ucar.edu> Co-authored-by: MET Tools Test Account <met_test@seneca.rap.ucar.edu> Co-authored-by: Seth Linden <linden@ucar.edu> Co-authored-by: lisagoodrich <33230218+lisagoodrich@users.noreply.github.com> Co-authored-by: davidalbo <dave@ucar.edu> Co-authored-by: Lisa Goodrich <lisag@ucar.edu> Co-authored-by: metplus-bot <97135045+metplus-bot@users.noreply.github.com> fix #2389 develop flowchart (#2392) Fix Python environment issue (#2407) fix definitions of G172 and G220 based on comments in NOAA-EMC/NCEPLIBS-w3emc#157. (#2406) fix #2380 develop override (#2382) fix #2408 develop empty config (#2410) fix #2390 develop compile zlib (#2404) fix #2412 develop climo (#2422) fix #2437 develop convert (#2439) fix for develop, for #2437, forgot one reference to the search_parent for a dictionary lookup. fix #2452 develop airnow (#2454) fix #2449 develop pdf (#2464) fix #2402 develop sonarqube (#2468) fix #2426 develop buoy (#2475) fix 2518 dtypes appf docs (#2519) fix 2531 compilation errors (#2533) fix #2531 compilation_errors_configure (#2535)
Expected Differences
If yes, please describe:
The -out_stat option can now be invoked for RIRW jobs. A new .stat output file will be created containing the 24 Common STAT Header columns along with either CTC and/or CTS header columns.
If yes, please describe:
Pull Request Testing
Tested using the following command line:
./tc_stat -lookin /d1/projects/MET/MET_regression/develop/NB20230503/MET-develop/test_output/tc_pairs/alal2010.tcst -job rirw -rirw_window 12 -rirw_thresh '<=-15' -out_line_type CTC,CTS -out_stat ./out.stat
Also called the same command line with -out_line_type CTC,CTS,MPR to verify that gives an Error message about not supporting MPR for the out_stat output file.
Added new test to TCStatConfig_ALAL2010:
"-job rirw -rirw_window 12 -rirw_thresh <=-15 -out_line_type CTC,CTS -out_stat ${MET_TEST_OUTPUT}/tc_stat/ALAL2010_rirw.stat"
Ran the unit test: unit_tc_stat.xml by hand
Run the updated unit test for: unit_tc_stat.xml
Check the new stat output file:
../MET/test_output/tc_stat/ALAL2010_rirw.stat
Yes, I updated the documentation in: docs/Users_Guide/tc-stat.rst, related to the RIRW job and being able to use the -out_stat option
Yes, updated the config file TCStatConfig_ALAL2010: used in unit_tc_stat.xml
If yes, describe the new output and/or changes to the existing output:
Yes, it creates a new output file called:
../MET/test_output/tc_stat/ALAL2010_rirw.stat
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes