Changeset 467460a in flexpart.git for src/gridcheck_gfs.f90
- Timestamp:
- Mar 13, 2021, 10:00:37 AM (3 years ago)
- Branches:
- GFS_025, dev
- Children:
- 9ca6e38
- Parents:
- 759df5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gridcheck_gfs.f90
- Property mode changed from 100644 to 100755
ra803521 r467460a 75 75 real :: sizesouth,sizenorth,xauxa,pint 76 76 real :: akm_usort(nwzmax) 77 real,parameter :: eps= 0.000177 real,parameter :: eps=spacing(2.0_4*360.0_4) 78 78 79 79 ! NCEP GFS 80 80 real :: pres(nwzmax), help 81 81 82 integer :: i1 79,i180,i18182 integer :: i180 83 83 84 84 ! VARIABLES AND ARRAYS NEEDED FOR GRIB DECODING … … 224 224 nxfield=isec2(2) 225 225 ny=isec2(3) 226 if((abs(xaux1).lt.eps).and.(xaux2.ge.359 )) then ! NCEP DATA FROM 0 TO227 xaux1=-1 79.0 ! 359 DEG EAST ->228 xaux2=-1 79.0+360.-360./real(nxfield) ! TRANSFORMED TO -179226 if((abs(xaux1).lt.eps).and.(xaux2.ge.359.)) then ! NCEP DATA FROM 0 TO 227 xaux1=-180.0 ! 359 DEG EAST -> 228 xaux2=-180.0+360.-360./real(nxfield) ! TRANSFORMED TO -179 229 229 endif ! TO 180 DEG EAST 230 230 if (xaux1.gt.180) xaux1=xaux1-360.0 … … 305 305 306 306 307 i179=nint(179./dx) 308 if (dx.lt.0.7) then 309 i180=nint(180./dx)+1 ! 0.5 deg data 310 else 311 i180=nint(179./dx)+1 ! 1 deg data 312 endif 313 i181=i180+1 307 i180=nint(180./dx) ! 0.5 deg data 314 308 315 309 … … 321 315 do ix=0,nxfield-1 322 316 help=zsec4(nxfield*(ny-jy-1)+ix+1) 323 if(ix.l e.i180) then324 oro(i1 79+ix,jy)=help325 excessoro(i1 79+ix,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED317 if(ix.lt.i180) then 318 oro(i180+ix,jy)=help 319 excessoro(i180+ix,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED 326 320 else 327 oro(ix-i18 1,jy)=help328 excessoro(ix-i18 1,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED321 oro(ix-i180,jy)=help 322 excessoro(ix-i180,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED 329 323 endif 330 324 end do … … 339 333 do ix=0,nxfield-1 340 334 help=zsec4(nxfield*(ny-jy-1)+ix+1) 341 if(ix.l e.i180) then342 lsm(i1 79+ix,jy)=help335 if(ix.lt.i180) then 336 lsm(i180+ix,jy)=help 343 337 else 344 lsm(ix-i18 1,jy)=help338 lsm(ix-i180,jy)=help 345 339 endif 346 340 end do … … 413 407 write(*,*) 414 408 write(*,*) 415 write(*,'(a,2i7)') 'Vertical levels in NCEP data: ', &409 write(*,'(a,2i7)') '# of vertical levels in NCEP data: ', & 416 410 nuvz,nwz 417 411 write(*,*)
Note: See TracChangeset
for help on using the changeset viewer.