Skip to content

Commit

Permalink
Sync merge remote-tracking branch 'origin/release/gfs.v16.3.21' into …
Browse files Browse the repository at this point in the history
…release/gfs.v16.3.22

* origin/release/gfs.v16.3.21:
  Fix for syndat_getjtbul code parsing 3-character storm names (GFSv16.3.21) (#3200)
  • Loading branch information
KateFriedman-NOAA committed Jan 6, 2025
2 parents 2c9e6fc + 65f2645 commit f05b004
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions sorc/syndat_getjtbul.fd/getjtbul.f
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,35 @@ PROGRAM SYNDAT_GETJTBUL
END IF
END DO

IF(INL1(26).EQ.' '.or.INL1(27).EQ.' ') THEN
IF(INL1(25).EQ.' '.or.INL1(26).EQ.' '.or.INL1(27).EQ.' ') THEN

c ... THIS RECORD STILL CONTAINS THE OLD 2-DIGIT FORM OF THE YEAR -
c ... THIS PROGRAM WILL NOW CONVERT THE RECORD TO A 4-DIGIT YEAR USING
c THE "WINDOWING" TECHNIQUE SINCE SUBSEQUENT LOGIC EXPECTS THIS

IF(INL(18:19).EQ.'20') THEN
IF(INL(17:18).EQ.'20') THEN
DUMY2K(1:16) = INL(1:16)
DUMY2K(17:19) = ' '
DUMY2K(20:80) = INL(17:77)
INL= DUMY2K
PRINT *, ' '
PRINT *, '==> This is a record with a 4-digit year'
PRINT *, ' '
ELSE IF(INL(18:19).EQ.'20') THEN
DUMY2K(1:17) = INL(1:17)
DUMY2K(18:19) = ' '
DUMY2K(20:80) = INL(18:78)
INL= DUMY2K
PRINT *, ' '
PRINT *, '==> This is an new-format record with a 4-digit '
PRINT *, '==> This is a record with a 4-digit year'
PRINT *, ' '
ELSE IF(INL(19:20).EQ.'20') THEN
DUMY2K(1:18) = INL(1:18)
DUMY2K(19:19) = ' '
DUMY2K(20:80) = INL(19:79)
INL= DUMY2K
PRINT *, ' '
PRINT *, '==> This is an new-format record with a 4-digit '
PRINT *, '==> This is a record with a 4-digit year'
PRINT *, ' '
ELSE
PRINT *, ' '
Expand Down

0 comments on commit f05b004

Please sign in to comment.