1 subroutine da_radzicevar_prepare_mixingratios(tlopt,prain_coef,dsnow_coef,dgr_coef, &
2 prain,dsnow,wsnow,dgr,wgr, &
4 pdfrrs,pdfrrg,pdfsrs,pdfgrg &
6 !------------------------------------------------------------------------------
7 ! purpose: calculate the mixing ratios of pure rainwater, dry/wet snow/graupel
8 !------------------------------------------------------------------------------
11 real :: prain_coef,dsnow_coef,dgr_coef
12 real :: prain,dsnow,wsnow,dgr,wgr
13 real :: upper_fs,upper_fg
16 real :: pdfrrs,pdfrrg,pdfsrs,pdfgrg
19 call da_radzicevar_upper_f(upper_fg,qra,qgr,qthres,2)
20 call da_radzicevar_upper_f(upper_fs,qra,qsn,qthres,1)
22 prain_coef=1-upper_fg-upper_fs
23 if(prain_coef<0.0) then
29 if(dsnow_coef<0.0) then
33 wsnow=(1-dsnow_coef)*(qsn+qra)
40 wgr=(1-dgr_coef)*(qgr+qra)
49 end subroutine da_radzicevar_prepare_mixingratios