Changes in src/gridcheck_gfs.f90 [467460a:a756649] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gridcheck_gfs.f90
- Property mode changed from 100755 to 100644
r467460a ra756649 1 ! SPDX-FileCopyrightText: FLEXPART 1998-2019, see flexpart_license.txt 2 ! SPDX-License-Identifier: GPL-3.0-or-later 1 !********************************************************************** 2 ! Copyright 1998,1999,2000,2001,2002,2005,2007,2008,2009,2010 * 3 ! Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa, * 4 ! Caroline Forster, Sabine Eckhardt, John Burkhart, Harald Sodemann * 5 ! * 6 ! This file is part of FLEXPART. * 7 ! * 8 ! FLEXPART is free software: you can redistribute it and/or modify * 9 ! it under the terms of the GNU General Public License as published by* 10 ! the Free Software Foundation, either version 3 of the License, or * 11 ! (at your option) any later version. * 12 ! * 13 ! FLEXPART is distributed in the hope that it will be useful, * 14 ! but WITHOUT ANY WARRANTY; without even the implied warranty of * 15 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 16 ! GNU General Public License for more details. * 17 ! * 18 ! You should have received a copy of the GNU General Public License * 19 ! along with FLEXPART. If not, see <http://www.gnu.org/licenses/>. * 20 !********************************************************************** 3 21 4 22 subroutine gridcheck_gfs … … 75 93 real :: sizesouth,sizenorth,xauxa,pint 76 94 real :: akm_usort(nwzmax) 77 real,parameter :: eps= spacing(2.0_4*360.0_4)95 real,parameter :: eps=0.0001 78 96 79 97 ! NCEP GFS 80 98 real :: pres(nwzmax), help 81 99 82 integer :: i1 80100 integer :: i179,i180,i181 83 101 84 102 ! VARIABLES AND ARRAYS NEEDED FOR GRIB DECODING … … 224 242 nxfield=isec2(2) 225 243 ny=isec2(3) 226 if((abs(xaux1).lt.eps).and.(xaux2.ge.359 .)) then ! NCEP DATA FROM 0 TO227 xaux1=-1 80.0 ! 359 DEG EAST ->228 xaux2=-1 80.0+360.-360./real(nxfield) ! TRANSFORMED TO -179244 if((abs(xaux1).lt.eps).and.(xaux2.ge.359)) then ! NCEP DATA FROM 0 TO 245 xaux1=-179.0 ! 359 DEG EAST -> 246 xaux2=-179.0+360.-360./real(nxfield) ! TRANSFORMED TO -179 229 247 endif ! TO 180 DEG EAST 230 248 if (xaux1.gt.180) xaux1=xaux1-360.0 … … 305 323 306 324 307 i180=nint(180./dx) ! 0.5 deg data 325 i179=nint(179./dx) 326 if (dx.lt.0.7) then 327 i180=nint(180./dx)+1 ! 0.5 deg data 328 else 329 i180=nint(179./dx)+1 ! 1 deg data 330 endif 331 i181=i180+1 308 332 309 333 … … 315 339 do ix=0,nxfield-1 316 340 help=zsec4(nxfield*(ny-jy-1)+ix+1) 317 if(ix.l t.i180) then318 oro(i1 80+ix,jy)=help319 excessoro(i1 80+ix,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED341 if(ix.le.i180) then 342 oro(i179+ix,jy)=help 343 excessoro(i179+ix,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED 320 344 else 321 oro(ix-i18 0,jy)=help322 excessoro(ix-i18 0,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED345 oro(ix-i181,jy)=help 346 excessoro(ix-i181,jy)=0.0 ! ISOBARIC SURFACES: SUBGRID TERRAIN DISREGARDED 323 347 endif 324 348 end do … … 333 357 do ix=0,nxfield-1 334 358 help=zsec4(nxfield*(ny-jy-1)+ix+1) 335 if(ix.l t.i180) then336 lsm(i1 80+ix,jy)=help359 if(ix.le.i180) then 360 lsm(i179+ix,jy)=help 337 361 else 338 lsm(ix-i18 0,jy)=help362 lsm(ix-i181,jy)=help 339 363 endif 340 364 end do … … 407 431 write(*,*) 408 432 write(*,*) 409 write(*,'(a,2i7)') '# of vertical levels in NCEP data: ', &433 write(*,'(a,2i7)') 'Vertical levels in NCEP data: ', & 410 434 nuvz,nwz 411 435 write(*,*)
Note: See TracChangeset
for help on using the changeset viewer.