-
Notifications
You must be signed in to change notification settings - Fork 38
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 748 ensemble stat config #775
Conversation
…tently for all wrappers that use those variables
…s that differ from the default to the appropriate METplus conf file
…se case tests to be more descriptive
… tool (TCRMW) does not set it, removed reading of _REGRID_TO_GRID in wrappers since it is handled in one place now
…nary instead of setting it directly as an environment variable so it is more clear what env var is being set, added test
…NS_THRESH to contain ens_thresh = <value>; instead of just the value
…r set_met_config_string/bool
…ult value may not be NA, added more tests for set_met_config_* functions
…nst MET variables
…o another directory
… instead of MET config
On kiowa, I ran 3.1 code on use cases (develop on WOFS case that is not in 3.1 codebase) then ran feature branch on use cases. I then ran the NetCDF diffing utility in ci/utils/netcdf_util.py to compare the NetCDF output files from each run. Before data: After data: A few differences in use case results were reconciled with METplus config updates. The WOFS output was different due to a hard-coded random seed value in the MET config file for that use case. I was able to replicate the output by changing this value. I have not yet compared the stat output. |
I modified the comparison scripts to compare files that are not NetCDF with the python filecmp utility. I verified that all of the use cases except the cam-multi output have identical output (For now I skip the log directory and metplus_final.conf file). The file lists differ because the paths of the files in them are in different directories, which I can add a check for (if file starts with file_list, then replace dir B with dir A for comparison). The EnsembleStat output files for cam-multi are all empty in the feature branch version, so I will investigate that. |
…sts that have different directories in them by replacing dir B with dir A in one of them
cam-multi output was missing because the wrong message_type value was set in the METplus config file. The runs now produce identical output. I also enhanced the directory diffing logic to handle file_lists properly. This PR is ready for review. |
For reference, here are the commands I used to run the use cases:
and the logic to perform the diffs
|
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.
Reviewed the changes and they look reasonable to me.
Also confirmed that all the GitHub actions passed.
Pull Request Testing
Updated use case config files to use the new environment variables.
Verified use cases ran successfully.
Review code changes.
Download the output data from GitHub Actions before and after the changes and verify that the output from the EnsembleStat use cases are the same.
Do these changes include sufficient documentation and testing updates? [Yes]
Additional documentation will be handled in Update setting of environment variables for MET config files to add support for all to METPLUS_ vars #768
Will this PR result in changes to the test suite? [Yes]
If yes, describe the new output and/or changes to the existing output:
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s), Project(s), and Milestone