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

Change grib2 file name forecast hour precision from two to three digits #282

Merged
merged 8 commits into from
Aug 29, 2020
Merged

Change grib2 file name forecast hour precision from two to three digits #282

merged 8 commits into from
Aug 29, 2020

Conversation

JeffBeck-NOAA
Copy link
Collaborator

DESCRIPTION OF CHANGES:

Changes forecast hour precision from two to three digits, and adds an "f" prior to the forecast hour in the final grib2 file names. Requested by GSL.

Modifies the plot_allvars.py Python script to match this convention.

TESTS CONDUCTED:

Tested successfully on Hera with both HRRR3km and HRRR25km domains.

CONTRIBUTORS (optional):

@gsketefian

@JeffBeck-NOAA JeffBeck-NOAA changed the title Feature/post fix Change grib2 file name forecast hour precision from two to three digits Aug 28, 2020
#
len_fhr=${#fhr}
if [ ${len_fhr} -eq 2 ]; then
post_fhr=${fhr}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Line 220: Indent 2 spaces

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in latest commit.

post_fhr="${fhr:1}"
fi
else
print_err_msg_exit "\
Copy link
Collaborator

Choose a reason for hiding this comment

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

Line 226: Indent two spaces (but not lines 227 and 228!)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in latest commit.

Copy link
Collaborator

@gsketefian gsketefian left a comment

Choose a reason for hiding this comment

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

Looks good.

@JeffBeck-NOAA JeffBeck-NOAA merged commit 33dc1bc into ufs-community:develop Aug 29, 2020
christinaholtNOAA pushed a commit to christinaholtNOAA/regional_workflow that referenced this pull request Apr 27, 2022
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