-
Notifications
You must be signed in to change notification settings - Fork 26
Feature #1371 series_analysis #2951
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…or the CTC, MCTC, SL1L2, and PCT line types.
…. Still have several issues to address
…ysis PairDataPoint object handling logic.
…st to unit_series_analysis.xml to demonstrate.
…roperly using the old aggregate data and the new pair data.
…once instead of storing data value by value for each point.
…es are not present in the input -aggr file.
…1L2Info, and NBRCNTInfo. The metadata settings, like fthresh and othresh, were not being passed to the output.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Expected Differences
@j-opatz or @mpm-meto recommend adding a METplus use case to demonstrate this new functionality. That use case could be set up to run Series-Analysis once for a list of times. For each time, only provide input data for that single timestep but use the
-aggr
command line option to point to the Series-Analysis output from the previous time step.Note that the Series-Analysis runtime is much slower for aggregation logic since it requires that many output statistics be written.
For example, in the diff output, the number of NetCDF variables is increased from 8 to 30:
And another run increases the count from 30 to 52 variables.
So while this is a nice feature, it does require more I/O and storage, which slows it down.
Do these changes introduce new tools, command line arguments, or configuration file options? [Yes]
If yes, please describe:
-aggr
command line option to the Series-Analysis tool to provide previous generated Series-Analysis output data to be aggregated.Do these changes modify the structure of existing or add new output data types (e.g. statistic line types or NetCDF variables)? [No]
If yes, please describe:
Pull Request Testing
My testing approach is described below:
-aggr
command line option pointing to the output from 2.ncview
to visually confirm that the outputs from 1. and 3. match visually.I used this approach to test the aggregation of CTC, MCTC, SL1L2, SAL1L2, and PCT line types.
Library updates were needed in order for anomaly correlation (CNT: ANOM_CORR) to be aggregated correctly.
Special logic is added to Series-Analysis to handle aggregating the PSTD BRIERCL and BSS columns.
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
ncview
to see the modified output and sanity check each the outputs. Note that while the list of stats requested has changed slightly, generally speaking the TRUTH data should look the same as the AGGR OUTPUT data. So visualize them side-by-side to confirm.Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
Do these changes include sufficient testing updates? [Yes]
Changes to
unit_series_analysis.xml
demonstrate the aggregation of CTC, MCTC, SL1L2, and PCT line types.Changes to
unit_climatology_1.0deg.xml
demonstrate the aggregation of anomaly statistics, including CNT:ANON_CORR and PSTD:BRIERCL/BSS.Will this PR result in changes to the MET test suite? [Yes]
If yes, describe the new output and/or changes to the existing output:
Modified output from Series-Analysis based on changes to unit tests.
Will this PR result in changes to existing METplus Use Cases? [Yes]
If yes, create a new Update Truth METplus issue to describe them.
It did cause an unanticipated diff in METplus Use Case output, as noted in dtcenter/METplus#2667.
Do these changes introduce new SonarQube findings? [No]
If yes, please describe:
Develop currently has 19,519 code smells and the scan for for this PRreduces that overall count down to 19,483 code smells.
Please complete this pull request review by [Fri 8/30/24].
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: Coordinated METplus-X.Y Support project for bugfix releases or MET-X.Y.Z Development project for official releases