-
Notifications
You must be signed in to change notification settings - Fork 8
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
Correct specification of NCEP grids 172 and 220 #158
Merged
edwardhartnett
merged 6 commits into
NOAA-EMC:develop
from
GeorgeGayno-NOAA:bugfix/grids172_220
Jan 17, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
15c28fd
Update the corner point latitude and orientation angle
GeorgeGayno-NOAA 5ec3205
Add unit test stub for routine w3fi71.
GeorgeGayno-NOAA f705b8e
Update unit test.
GeorgeGayno-NOAA 31c6a98
More unit tests updates for grid 172
GeorgeGayno-NOAA 9bcf61d
Add test of grid 220.
GeorgeGayno-NOAA ede8c86
Add some comments to unit test.
GeorgeGayno-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
program test_w3fi71 | ||
|
||
! Call routine w3fi71 for NCEP grids 172 and 220. | ||
! Compare the Grib1 grid description section | ||
! against expected values. | ||
|
||
implicit none | ||
integer :: igrid, igds(18), ierr | ||
|
||
print*,"Testing w3fi71..." | ||
|
||
print*,"Check grid 172" | ||
igrid = 172 | ||
call w3fi71(igrid, igds, ierr) | ||
if (ierr /= 0) stop 2 | ||
if (igds(1) /= 0) stop 4 | ||
if (igds(2) /= 255) stop 6 | ||
if (igds(3) /= 5) stop 8 | ||
if (igds(4) /= 690) stop 10 | ||
if (igds(5) /= 710) stop 12 | ||
if (igds(6) /= -36899) stop 14 | ||
if (igds(7) /= -220194) stop 16 | ||
if (igds(8) /= 0) stop 18 | ||
if (igds(9) /= -80000) stop 20 | ||
if (igds(10) /= 12700) stop 22 | ||
if (igds(11) /= 12700) stop 24 | ||
if (igds(12) /= 128) stop 26 | ||
if (igds(13) /= 64) stop 28 | ||
if (igds(14) /= 0) stop 30 | ||
if (igds(15) /= 0) stop 32 | ||
if (igds(16) /= 0) stop 34 | ||
if (igds(17) /= 0) stop 36 | ||
if (igds(18) /= 0) stop 38 | ||
|
||
print*,"Check grid 220" | ||
igrid = 220 | ||
call w3fi71(igrid, igds, ierr) | ||
if (ierr /= 0) stop 42 | ||
if (igds(1) /= 0) stop 44 | ||
if (igds(2) /= 255) stop 46 | ||
if (igds(3) /= 5) stop 48 | ||
if (igds(4) /= 345) stop 50 | ||
if (igds(5) /= 355) stop 52 | ||
if (igds(6) /= -36899) stop 54 | ||
if (igds(7) /= -220194) stop 56 | ||
if (igds(8) /= 0) stop 58 | ||
if (igds(9) /= -80000) stop 60 | ||
if (igds(10) /= 25400) stop 62 | ||
if (igds(11) /= 25400) stop 64 | ||
if (igds(12) /= 128) stop 66 | ||
if (igds(13) /= 64) stop 68 | ||
if (igds(14) /= 0) stop 70 | ||
if (igds(15) /= 0) stop 72 | ||
if (igds(16) /= 0) stop 74 | ||
if (igds(17) /= 0) stop 76 | ||
if (igds(18) /= 0) stop 78 | ||
|
||
print*,"SUCCESS" | ||
end program test_w3fi71 |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the test!!