1 SUBROUTINE etamp_q2f(QRIMEF,QQI,QQR,QQW,CWM,F_RAIN,F_ICE,F_RIMEF,T)
5 use ctlblk_mod
, only: lm,im,jsta,jend,jsta_2l,jend_2u
8 real,
intent(in),
dimension(im,jsta_2l:jend_2u,lm) :: &
11 real,
intent(out),
dimension(im,jsta_2l:jend_2u,lm) :: &
12 f_rain,f_ice,f_rimef,cwm
19 real,
parameter :: t_ice=-40., t0c=273.15, t_icek=233.15
20 real,
parameter :: epsq=1.e-12
25 qt=qqw(i,j,l)+qqr(i,j,l)+qqi(i,j,l)
27 if(qqi(i,j,l)<=epsq)
then
30 if(t(i,j,l)<t_icek) f_ice(i,j,l)=1.
32 f_ice(i,j,l)=max(0.,min(1.,qqi(i,j,l)/qt))
33 f_rimef(i,j,l)=max(1.,min(100.,qrimef(i,j,l)/qqi(i,j,l)))
35 if(qqr(i,j,l) <= epsq)
then
38 f_rain(i,j,l)=max(0.,min(1.,qqr(i,j,l)/(qqr(i,j,l)+qqw(i,j,l))))
43 END SUBROUTINE etamp_q2f