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,&
6 ista,iend,ista_2l,iend_2u
9 real,
intent(in),
dimension(ista_2l:iend_2u,jsta_2l:jend_2u,lm) :: &
12 real,
intent(out),
dimension(ista_2l:iend_2u,jsta_2l:jend_2u,lm) :: &
13 f_rain,f_ice,f_rimef,cwm
20 real,
parameter :: t_ice=-40., t0c=273.15, t_icek=233.15
21 real,
parameter :: epsq=1.e-12
26 qt=qqw(i,j,l)+qqr(i,j,l)+qqi(i,j,l)
28 if(qqi(i,j,l)<=epsq)
then
31 if(t(i,j,l)<t_icek) f_ice(i,j,l)=1.
33 f_ice(i,j,l)=max(0.,min(1.,qqi(i,j,l)/qt))
34 f_rimef(i,j,l)=max(1.,min(100.,qrimef(i,j,l)/qqi(i,j,l)))
36 if(qqr(i,j,l) <= epsq)
then
39 f_rain(i,j,l)=max(0.,min(1.,qqr(i,j,l)/(qqr(i,j,l)+qqw(i,j,l))))
44 END SUBROUTINE etamp_q2f