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

Bug fix for HRRR IFI: Use ifi_apcp if it is 0 #1127

Merged
merged 63 commits into from
Mar 1, 2025

Conversation

SamuelTrahanNOAA
Copy link
Contributor

@SamuelTrahanNOAA SamuelTrahanNOAA commented Jan 29, 2025

This is the bug fix described in detail here:

It corrects a bug in how accumulated hourly precipitation is sent to IFI from within UPP.

I've tested it with the regression tests in this branch:

With these changes, the HRRR UPP IFI and standalone IFI match, which they don't in develop now.

Also, in testing, @WenMeng-NOAA discovered another problem which this branch fixes:

EDIT: The original title of the Issue was wrong. The troubled script is "run_post_hrrr_ifi_HERA.sh"

@SamuelTrahanNOAA
Copy link
Contributor Author

This PR is expected to change IFI results due to the bugfix in IFI.F

It is not expected to change results of other tests. Also, it shouldn't change results of the "ifi missing" tests.

@SamuelTrahanNOAA
Copy link
Contributor Author

My tests produce a change I don't expect:

.../upp-HERA/rap_2020072316_pe_test/WRFPRS.GrbF16.diff:1:708:195559853:CDCON:convective cloud layer:rpn_corr=-nan:rpn_rms=undefined

There are no commits in this PR which should change the result of the rap_2020072316_pe_test

@WenMeng-NOAA
Copy link
Collaborator

My tests produce a change I don't expect:

.../upp-HERA/rap_2020072316_pe_test/WRFPRS.GrbF16.diff:1:708:195559853:CDCON:convective cloud layer:rpn_corr=-nan:rpn_rms=undefined

There are no commits in this PR which should change the result of the rap_2020072316_pe_test

@SamuelTrahanNOAA This is a glitch in the UPP. So far, there is no smoking gun for this metadata change. The workaround is updating WRFPRS.GrbF16.diff in the baseline.

@WenMeng-NOAA
Copy link
Collaborator

@SamuelTrahanNOAA My UPP RTs including IFI are /scratch1/NCEPDEV/stmp2/Wen.Meng/upp-HERA on Hera. Somehow, the test 'hrrr_ifi_2020060118' loaded unused crtm fix files, e.g. imgr_*. I don't see that loading in ci/jobs-dev/run_post_hrrr_ifi_HERA.sh. Do you any ideas why these crtm fix files were copied into the run directory?

@WenMeng-NOAA WenMeng-NOAA added the Ready for Review This PR is ready for code review. label Feb 28, 2025
@SamuelTrahanNOAA
Copy link
Contributor Author

Is this doing it?

#copy fix data                                                                                                                                                                                                                                                                    
cp $homedir/fix/fix_2.3.0/*bin .

@WenMeng-NOAA
Copy link
Collaborator

Is this doing it?

#copy fix data                                                                                                                                                                                                                                                                    
cp $homedir/fix/fix_2.3.0/*bin .

@SamuelTrahanNOAA That's it. Please remove this line. Thanks!

@SamuelTrahanNOAA
Copy link
Contributor Author

I've removed the unneeded cp command. Can someone please retest this?

@SamuelTrahanNOAA
Copy link
Contributor Author

SamuelTrahanNOAA commented Feb 28, 2025

I opened an issue for the unneeded cp:

Merging this PR will automatically close the issue.

EDIT: The original title of the Issue was wrong. The troubled script is "run_post_hrrr_ifi_HERA.sh"

@WenMeng-NOAA WenMeng-NOAA linked an issue Feb 28, 2025 that may be closed by this pull request
@WenMeng-NOAA
Copy link
Collaborator

I've removed the unneeded cp command. Can someone please retest this?

@SamuelTrahanNOAA The issue of crtm fix files was solved in my latest run at /home/Wen.Meng/stmp2/upp-HERA/hrrr_ifi_2020060118. I would think the changes in 'IFIFIP.GrbF04.diff' are expected with this PR.

@WenMeng-NOAA
Copy link
Collaborator

@gspetro-NOAA This PR is ready for the UPP RTs on R&D machines. From the EPIC end, there should be no baseline changes since IFI tests are not included. You may copy the new baseline for hrrr_ifi from my testing at /home/Wen.Meng/stmp2/upp-HERA/hrrr_ifi_2020060118 on Hera.

@SamuelTrahanNOAA
Copy link
Contributor Author

Any IFI GRIB file with libIFI enabled is expected to change results due to the bug fix.

No other files should change, including the "IFI missing" tests.

@WenMeng-NOAA WenMeng-NOAA added Ready for commit queue Baseline Change The baselines of the UPP regression tests are changed. labels Feb 28, 2025
Copy link
Collaborator

@gspetro-NOAA gspetro-NOAA left a comment

Choose a reason for hiding this comment

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

RTs pass on Hera, Orion, and Hercules with no baseline changes for non-IFI RTs. I updated the baseline for hrrr_ifi.
@WenMeng-NOAA Should there be an update for fv3r_ifi?

@SamuelTrahanNOAA
Copy link
Contributor Author

The fv3r_ifi probably won't change. If it does, that doesn't indicate anything is wrong.

@WenMeng-NOAA
Copy link
Collaborator

The fv3r_ifi probably won't change. If it does, that doesn't indicate anything is wrong.

From my testing, that's right.

@WenMeng-NOAA
Copy link
Collaborator

This PR is ready for merging.

@WenMeng-NOAA WenMeng-NOAA merged commit f82b5cf into NOAA-EMC:develop Mar 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Baseline Change The baselines of the UPP regression tests are changed. bug Something isn't working Ready for commit queue Ready for Review This PR is ready for code review.
Projects
None yet
3 participants