Changeset db91eb7 in flexpart.git for src/readwind_gfs.f90


Ignore:
Timestamp:
Dec 5, 2018, 11:52:16 AM (5 years ago)
Author:
Sabine <sabine.eckhardt@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug
Children:
e9e0f06, 3d7eebf
Parents:
79e0349
Message:

reading clouds in NCEP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/readwind_gfs.f90

    r6ecb30a rdb91eb7  
    1 !**********************************************************************
     1
    22! Copyright 1998,1999,2000,2001,2002,2005,2007,2008,2009,2010         *
    33! Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa,             *
     
    108108  character(len=24) :: gribErrorMsg = 'Error reading grib file'
    109109  character(len=20) :: gribFunction = 'readwind_gfs'
     110  character(len=20) :: shortname
    110111
    111112
     
    120121
    121122  !HSO
    122 5   call grib_open_file(ifile,path(3)(1:length(3)) &
     123  call grib_open_file(ifile,path(3)(1:length(3)) &
    123124         //trim(wfname(indj)),'r',iret)
    124125  if (iret.ne.GRIB_SUCCESS) then
     
    162163
    163164  !read the grib2 identifiers
     165  call grib_get_string(igrib,'shortName',shortname,iret)
     166
    164167  call grib_get_int(igrib,'discipline',discipl,iret)
    165168!  call grib_check(iret,gribFunction,gribErrorMsg)
     
    173176       valSurf,iret)
    174177!  call grib_check(iret,gribFunction,gribErrorMsg)
    175 
     178 
     179!  write(*,*) 'Field: ',ifield,parCat,parNum,typSurf,shortname
    176180  !convert to grib1 identifiers
    177181  isec1(6)=-1
     
    214218    isec1(7)=105         ! indicatorOfTypeOfLevel
    215219    isec1(8)=10
     220  elseif ((parCat.eq.1).and.(parNum.eq.22).and.(typSurf.eq.100)) then ! CLWMR Cloud Mixing Ratio [kg/kg]:
     221    isec1(6)=153         ! indicatorOfParameter
     222    isec1(7)=100         ! indicatorOfTypeOfLevel
     223    isec1(8)=valSurf/100 ! level, convert to hPa
    216224  elseif ((parCat.eq.3).and.(parNum.eq.1).and.(typSurf.eq.101)) then ! SLP
    217225    isec1(6)=2           ! indicatorOfParameter
     
    548556        endif
    549557      endif
     558! SEC & IP 12/2018 read GFS clouds
     559      if(isec1(6).eq.153) then  !! CLWCR  Cloud liquid water content [kg/kg]
     560        clwch(i,j,nlev_ec-k+2,n)=zsec4(nxfield*(ny-j-1)+i+1)
     561        readclouds=.true.
     562        sumclouds=.true.
     563      endif
     564
    550565
    551566    end do
     
    675690    call shift_field(vvh,nxfield,ny,nuvzmax,nuvz,1,1)
    676691    call shift_field(wwh,nxfield,ny,nwzmax,nwz,1,1)
     692! IP & SEC adding GFS Clouds 20181205
     693    call shift_field(clwch,nxfield,ny,nuvzmax,nuvz,2,n)
    677694  endif
    678695
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG