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

update era5/ifs soil field processing #266

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ungrib/src/rd_grib2.F
Original file line number Diff line number Diff line change
@@ -732,6 +732,18 @@ SUBROUTINE rd_grib2(junit, gribflnm, hdate,
& (10.**(-1.*gfld%ipdtmpl(11)))
glevel2 = 100. * gfld%ipdtmpl(15)*
& (10.**(-1.*gfld%ipdtmpl(14)))
! The following if-block accounts for the 2024 changes to IFS soil fields. They use a local table.
if (icenter .eq. 98 .and.
& gfld%discipline .eq. 192 .and.
& gfld%ipdtmpl(1) .eq. 128 .and.
& gfld%ipdtmpl(10).eq. 106) then
glevel1 = gfld%ipdtmpl(12)
glevel2 = gfld%ipdtmpl(15)
if ( glevel1 .eq. 100. .and.
& glevel2 .lt. -1.e+9 ) then
glevel2 = 255.
endif
endif
end if
TMP8LOOP: do j = 1, maxvar
if ((g2code(4,j) .eq. 106) .and.