Skip to content
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

fix for special accumulation case where MASSDEN 0h field ends in '_1' #247

Merged
merged 8 commits into from
Nov 15, 2024

Conversation

cshartsough
Copy link
Collaborator

The MASSDEN field (measuring dust) has two variables, one for coarse and one for fine. For the initial hour, one field ends with '_avg' and one with '_avg_1'. For later hours they end in '_avg1h' and '_avg1h_1'.

The pygraf code recognizes the '_avg' and renames the field as needed, but doesn't recognize the '_avg_1' field as needing to be renamed. The error causes the graphics code to completely crash on hour=001.

This change treats the initlal-hour '_avg_1' field separately from the other code logic, and does the necessary renaming.

Tested in the RRFS_B realtime runs for twelve hours, seems to work as desired.

Passed pylint. Will do pytest on PR submission.

christinaholtNOAA and others added 6 commits November 14, 2024 08:34
Craig added changes that Christina made for new micromamba syntax in graphics_tests here as well.
more changes to hrrr_maps_tests from graphics_tests, missed in last commit
another change from the graphics_tests side that needed to be brought over to hrrr_maps_tests.
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.

@cshartsough cshartsough merged commit f4ca05f into main Nov 15, 2024
2 checks passed
@cshartsough cshartsough deleted the massden_crash branch November 15, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants