Skip to content
Merged
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
7 changes: 5 additions & 2 deletions sorc/ncep_post.fd/grib2_module.f
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module grib2_module
! March, 2015 Lin Gan Replace XML file with flat file implementation
! with parameter marshalling
! July, 2021 Jesse Meng 2D decomsition
! June, 2022 Lin Zhu change the dx/dy to reading in from calculating for latlon grid
!------------------------------------------------------------------------
use xml_perl_data, only: param_t,paramset_t
!
Expand Down Expand Up @@ -1779,13 +1780,15 @@ subroutine getgds(ldfgrd,len3,ifield3len,igds,ifield3)
ifield3(15) = latlast
ifield3(16) = lonlast
! ifield3(17) = NINT(360./(IM)*1.0E6)
ifield3(17) = abs(lonlast-lonstart)/(IM-1)
! ifield3(17) = abs(lonlast-lonstart)/(IM-1)
ifield3(17) = DXVAL
! if(mod(jm,2) == 0 ) then
! ifield3(18) = NINT(180./JM*1.0E6)
! else
! ifield3(18) = NINT(180./(JM-1)*1.0E6)
ifield3(18) = abs(latlast-latstart)/(JM-1)
! ifield3(18) = abs(latlast-latstart)/(JM-1)
! endif
ifield3(18) = DYVAL
if( latstart < latlast ) then
ifield3(19) = 64 !for SN scan
else
Expand Down