Bugfix #3358 develop stageIV#3412
Draft
JohnHalleyGotway wants to merge 4 commits into
Draft
Conversation
…h as well since it shows up in NetCDF versions of StageIV data.
… of units and correct the logic for parsing the polar stereographic grid.
…tageIV data." ;
…using the min value to avoid anything unexpected.
|
23 tasks
hsoh-u
approved these changes
Jul 9, 2026
JohnHalleyGotway
marked this pull request as draft
July 9, 2026 16:28
Collaborator
Author
|
Converted this to a draft because the testing workflow for the PR flagged unexpected differences in two existing output files: This warrants further investigation. |
Collaborator
Author
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
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
Do these changes introduce new tools, command line arguments, or configuration file options? [No]
If yes, please describe:
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
These changes include:
plot_data_planeto demonstrate reading this data.grid_base.ccto allow for Polar Stereographic grids to also be flipped from north to south.nc_cf_file.ccto do case insensitive unit checking, setdata.scale_latfor Polar Stereo grids, and check for negativedy_kmto setswap_to_north.Note that I ran with both GRIB2 and NetCDF StageIV input data and confirmed that they both now log the same grid information:
I'll note that
proj_origin_latis always set to +/-90 as defined in the CF-docs. But eitherstandard_parallelorscale_factor_at_projection_origincan be specified, and I don't have examples of the latter with which to test out this logic.Find the code available for testing in:
seneca:/d1/projects/MET/MET_pull_requests/met-13.0.0/rc1/MET-bugfix_3358_develop_stageIVDo these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
None needed.
Do these changes include sufficient testing updates? [Yes]
Added 2 new tests to
unit_plot_data_plane.xml:Note the use of

censor_threshandcensor_valsince the NetCDF uses a data value of -10000 but does not specify it as being bad data.Here are the resulting plots:
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:
Adds 2 new output files.
Will this PR result in changes to existing METplus Use Cases? [No]
If yes, create a new Update Truth METplus issue to describe them.
Do these changes introduce new SonarQube findings? [Yes or No]
If yes, please describe:
Please complete this pull request review by [Fill in date].
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: METplus-X.Y Support project for bugfix releases or MET-X.Y Development project for the next coordinated release