-
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
Enhance the Grid-Stat GRAD line type with additional gradient vector-based statistics to measure sharpness #3024
Enhance the Grid-Stat GRAD line type with additional gradient vector-based statistics to measure sharpness #3024
Comments
…new columns to the existing GRAD line type.
I think we should validate that the existing contents of the GRAD line type is actually correct. Running in
The following R commands report an S1 score of 4.048109:
However, the default gradient function in SpatialVx does a large amount of smoothing:
Switching to using a simple difference (as MET uses) produces a much more similar result:
While 75.88391 and MET's 76.36778 are not identical, they are rather close. It seems that the |
Need to confirm that this is the correct way to compute the
|
|
@JohnHalleyGotway, @KathrynNewman, and @DanielAdriaansen met with @bgbrowntollerud on Dec 4, 2024 to discuss adding these new statistics to the GRAD line type. Barb confirmed that this is a reasonable thing to do and recommended that we proceed. She emphasized that the gradients really just measure the "texture" of the data and say nothing about the accuracy of the forecast. We decided NOT to include SSIM in this work, but documented that as a potential future feature request via #3031. We also note that these gradient statistics could be of use in the Series-Analysis tool, as described in MET #3030. |
@KathrynNewman and @bgbrowntollerud please advise on the following:
To this line of code:
Where fgx, fgy, ogx, and ogy are the forecast/observation gradients at a point in the X- and Y-dimensions.
The ones for |
John, sorry for the delay. Unfortunately I am not an expert by any means on this topic. What you suggest sounds logical to me, but I can't confirm for sure. Do we have any experts on this topic in RAL (perhaps David-John?) who could help us? I'll take another look at the paper to see if I can surmise anything. |
Describe the Enhancement
As discussed on Nov 18, 2024 by @DanielAdriaansen and @JohnHalleyGotway (see meeting notes), consider adding statistics to quantify "sharpness", especially in AI/ML output, using the methods defined in this paper:
An Investigation of Metrics to Evaluate the Sharpness in AI-Generated Meteorological Imagery
Grid-Stat already writes a gradient (GRAD) output line type that contains the S1 score and it's components. The existing statistics are computed by summing the X- and Y-gradients. The methods described in this paper use the X- and Y-gradients to form a gradient vector, and then compute the magnitude of those vectors in both the forecast and observation fields.
Consider adding 4 new GRAD columns for the following methods:
Also enhance Grid-Stat to include the gradient vector magnitude and divergence fields, if
nc_pairs_flag.gradient = TRUE
in the Grid-Stat config file.Also enhance Stat-Analysis to aggregate these new statistics properly.
Prior to adding new columns, update the version number of MET from 12.0 to 12.1.
Recommend NOT adding the following:
FBAR
and observationOBAR
values. While the min/max data values are not actually written, they don't really belong in the gradient line type since they are NOT based on gradients.Requires further investigation:
I'd also recommend that we review the existing implementation of the S1 score to confirm that the Appendix C Equations (and also the WGNE website) actually match the computation of sums starting on this line of code.
Where the forecast gradient is given by
(fgx_na[i], fgy_na[i])
and observed gradient is given by(ogx_na[i], ogy_na[i])
.Time Estimate
2 days?
Sub-Issues
Consider breaking the enhancement down into sub-issues.
None needed.
Relevant Deadlines
NRL charging must be completed on 12/30/24
Funding Source
FY25 Q1 NRL METplus 7730022
Define the Metadata
Assignee
Labels
Milestone and Projects
Define Related Issue(s)
Consider the impact to the other METplus components.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issue
Select: Milestone as the next official version
Select: MET-X.Y.Z Development project for development toward the next official release
The text was updated successfully, but these errors were encountered: