-
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 #3024 and #3030 Series-Analysis GRAD #3036
Conversation
…new columns to the existing GRAD line type.
…rmatting, not html
…Stat to the common area and then referencing it in both Grid-Stat and Series-Analysis.
…dictionary and an entry for output_stats.gradient. Update the conf_info source code to parse them. Still need to update OTHER Series-Analysis config files and also update the logic in series_analysis.cc to compute GRAD statistics.
…ong_name attribute of the Series-Analysis output files.
…by Series-Analysis
…crementally across multiple runs. However, this can only be done when requesting that 'ALL' GRAD columns be written.
@@ -130,6 +130,12 @@ References | |||
| a review and proposed framework. *Meteorological Applications*, 15, 51-64. | |||
| | |||
.. _Ebert-Uphoff-2024: | |||
|
|||
| Ebert-Uphoff, I.,, 2024: An Investigation of Metrics to Evaluate the Sharpness |
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 wonder if this fits under "unpublished material" type. If so, that would mean it can be mentioned in-line with I. Ebert-Uphoff (2024, unpublished article) and is not included in the reference page.
However, if this is expected to be accepted soon, then I'd rather we just stick to a normal journal article citation (similar to how it currently is written) rather than trying to remember the name of the article later on.
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.
Minor updates that are listed as comments should be completed; I'm going to run these equations by Barb today in our meeting (if it's not cancelled) and approve/request changes based on her feedback.
Hey, John, I'll be there for our meeting. I wasn't sure till today that you
were back! I'll aim to review the material again before we meet this
afternoon.
Barb
…On Wed, Jan 15, 2025 at 10:56 AM j-opatz ***@***.***> wrote:
***@***.**** commented on this pull request.
Minor updates that are listed as comments should be completed; I'm going
to run these equations by Barb today in our meeting (if it's not cancelled)
and approve/request changes based on her feedback.
—
Reply to this email directly, view it on GitHub
<#3036 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANSCXT7XBIBPA26WLTLOVU32K2OOFAVCNFSM6AAAAABTQJZZQ2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKNJTGUZDCOJSGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
After some syntax corrections and discussion of the implementation with Barb, it seems like this feature branch is approved. I noted a different way the draft article could be cited, but as we are not beholden to any specific citation notation, what's there is good. The differences cited by GHA also are within expectations and are from the new column headers (and new configuration file options).
Ultimately I don't have the data or the time to create a proper test for this new logic; I sincerely hope we can obtain timely feedback from whomever helped create this issue. Testing with their datasets would be the fastest way to check for coding accuracy.
Proceeding with the squash and merge. I note that I did have to resolve a minor conflict in the Grid-Stat user's guide that appeared after I submitted this PR. |
This pull request is for enhancements described in issue MET#3024 and MET#3030. I originally did the changes for MET#3024 on a branch named
feature_3024_GRAD
and then created this newfeature_3030_series_analysis_GRAD
branch from thefeature_3024_GRAD
. I am combining them into one PR to make the review process more efficient.This PR includes all the following changes:
For MET#3024:
FGMAG
,OGMAG
,MAG_RMSE
,LAPLACE_RMSE
For MET#3030:
gradient
dictionary andoutput_stat.grad
entry to the default Series-Analysis config file.gradient
dictionary.gradient
dictionary from the Grid-Stat chapter to the "common config entries" chapter.output_stats.grad
can be set to "ALL" to facilitate aggregation across multiple runs.Expected Differences
Do these changes introduce new tools, command line arguments, or configuration file options? [Yes]
If yes, please describe:
In Series-Analysis config file, adds new
gradient
dictionary andoutput_stats.grad
option.Do these changes modify the structure of existing or add new output data types (e.g. statistic line types or NetCDF variables)? [Yes]
If yes, please describe:
Adds 4 new columns (
FGMAG
,OGMAG
,MAG_RMSE
,LAPLACE_RMSE
) to the end of the existing GRAD line type, written by Grid-Stat.Enhances Series-Analysis to compute/write GRAD statistics to its NetCDF output.
Pull Request Testing
Describe testing already performed for these changes:
Manually ran Grid-Stat to confirm the logic for computing GRAD stats in a single run, using the existing unit tests.
Manually ran Series-Analysis to confirm the logic for GRAD stats in a single run, plus aggregating them across multiple ones.
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Several things:
Please find this feature branch compiled/available for testing on seneca in:
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]
Adds no new tests, but reconfigures existing ones which causes differences in the output.
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:
4 new columns added to all instance of the
GRAD
line type.Modified output from 2 Series-Analysis runs that now include new gradient output variables.
Note that I inspected the differences flagged in this GHA testing workflow run. Differences exist in the following 9 files:
vimdiff
on seneca to look through the diffs in all.txt
and.stat
files and confirmed that they're all due to the 4 new columns being added to the end of the GRAD line type.output_stat.grad = "ALL"
in the config file. That 14 columns in the GRAD line type (TOTAL
...LAPLACE_RMSE
) x 2 gradients: dx,dy = (1,1) and (3,3).So all of these differences are consistent with the code changes for this PR.
Will this PR result in changes to existing METplus Use Cases? [Yes]
If yes, create a new Update Truth METplus issue to describe them.
The output from METplus use case that writes the
GRAD
line type will also change.Do these changes introduce new SonarQube findings? [No]
If yes, please describe:
The current develop branch flags 18,253 code smells overall.
After making some changes to fix easy ones, I was able to reduce them in the feature_3030_series_analysis_GRAD branch down to 18,173 overall.
Please complete this pull request review by [Friday 1/17/25].
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