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

Add support for large RRFS natlev large grib2 files #1

Open
wants to merge 1 commit into
base: release/srw-v3.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions sorc/chgres_cube.fd/atm_input_data.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2065,8 +2065,8 @@ subroutine read_input_atm_grib2_file(localpet)
jpdtn = -1 ! Search for any product definition template number.
unpack =.false.

call getgb2(lugb, lugi, j, jdisc, jids, jpdtn, jpdt, jgdtn, jgdt, &
unpack, k, gfld, iret)
call getgb2i2(lugb, lugi , j, jdisc, jids, jpdtn, jpdt, jgdtn, jgdt, &
unpack, 2, k, gfld, iret)

!----------------------------------------------------------------------
! Read first record and check if this is NCEP GEFS data.
Expand Down
4 changes: 2 additions & 2 deletions sorc/chgres_cube.fd/model_grid.F90
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ subroutine define_input_grid_grib2(npets)
jpdt = -9999 ! Array of values in product definition template, set to wildcard.
unpack = .false. ! unpack data

call getgb2(lugb, lugi, j, jdisc, jids, jpdtn, jpdt, jgdtn, jgdt, &
unpack, k, gfld, rc)
call getgb2i2(lugb, lugi, j, jdisc, jids, jpdtn, jpdt, jgdtn, jgdt, &
unpack, 2, k, gfld, rc)
if (rc /= 0) call error_handler("DEGRIBBING INPUT FILE.", rc)

call baclose(lugb,rc)
Expand Down
6 changes: 3 additions & 3 deletions sorc/chgres_cube.fd/sfc_input_data.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ subroutine read_input_sfc_grib2_file(localpet)

if (localpet == 0) then

lugb=12
lugb=16
call baopenr(lugb,the_file,rc)
if (rc /= 0) call error_handler("ERROR OPENING GRIB2 FILE.", rc)

Expand All @@ -1822,8 +1822,8 @@ subroutine read_input_sfc_grib2_file(localpet)
jpdt = -9999 ! array of values in product definition template, set to wildcard
unpack = .false. ! unpack data

call getgb2(lugb, lugi, j, jdisc, jids, jpdtn, jpdt, jgdtn, jgdt, &
unpack, k, gfld, rc)
call getgb2i2(lugb, lugi, j, jdisc, jids, jpdtn, jpdt, jgdtn, jgdt, &
unpack, 2, k, gfld, rc)

if (rc == 0) then
if (gfld%idsect(1) == 7 .and. gfld%idsect(2) == 2) then
Expand Down
Loading