-
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
Open
JohnHalleyGotway
wants to merge
19
commits into
develop
Choose a base branch
from
feature_3030_series_analysis_GRAD
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
…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.
This was
linked to
issues
Dec 12, 2024
16 tasks
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.
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 [Wed 12/18/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