Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pass specs file name to fieldData class #248

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

ShawnMurdzek-NOAA
Copy link
Contributor

The default_specs.yml file controls which fields are extracted from the UPP GRIB2 output for plotting as well as the plotting specifications. When using a custom version of default_specs.yml with the --specs option, information about which UPP fields to extract are not passed to the adb_graphics.datahandler.gribdata.fieldData class as expected. Instead, the default values are always used.

This PR addresses this bug by making a few, minor changes to pass the user-defined specs file to adb_graphics.datahandler.gribdata.fieldData.

Test: Offline using UPP output with fields following a mix of HRRR and RRFS naming conventions. Updated code successfully leveraged a user-defined specs file so that the correct fields were plotted.

ShawnMurdzek-NOAA and others added 2 commits January 30, 2025 10:02
Update with authoritative
Allows users to specify which UPP fields are used when making various
plots by creating their own default_specs.yml that can be passed to
pygraf using the --specs option.
Copy link
Collaborator

@christinaholtNOAA christinaholtNOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution!

@cshartsough cshartsough merged commit 9c48e73 into NOAA-GSL:main Jan 31, 2025
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants