! $Id$ MODULE lmdz_cld2rad_micro PUBLIC cld2rad_micro CONTAINS !================================================================================================= SUBROUTINE cld2rad_micro(klon, klev, paprs, pplay, temp, radocond, radicefrac, cldfra, & mass_solu_aero, mass_solu_aero_pi, dNovrN, cldtau, cldtau_pi, cldemi, reliq, reice, & reliq_pi, reice_pi, cdnc, cdnc_pi) USE lmdz_cld2rad_ini , ONLY : flag_aerosol, ok_cdnc, rhol USE lmdz_cld2rad_ini , ONLY : bl95_b0, bl95_b1 USE lmdz_cld2rad_ini , ONLY : latitude_deg USE lmdz_cld2rad_ini , ONLY : cdnc_max, cdnc_max_m3 USE lmdz_cld2rad_ini , ONLY : cdnc_min, cdnc_min_m3 USE lmdz_cld2rad_ini , ONLY : seuil_neb, coef_chau USE lmdz_cld2rad_ini , ONLY : k_ice0, df USE lmdz_cld2rad_ini , ONLY : rg, rd, rpi USE lmdz_cld2rad_ini , ONLY : rad_chau1, rad_chau2, iflag_rei USE lmdz_cld2rad_ini , ONLY : rei_max, rei_min USE lmdz_cld2rad_ini , ONLY : rei_coef, rei_min_temp USE lmdz_cld2rad_ini , ONLY : iflag_cdreff IMPLICIT NONE ! ====================================================================== ! cld2rad_micro ! ! computes microphysical optical properties of clouds relevant for ! cloud-radiation interactions ! IMPORTANT: !----------- ! For RRTM and ECRAD radiative codes, liquid droplets and ice crystal ! radii are computed here. Optical parameters (extinction efficiency, single scattering albedo, asymetry factor) ! are computed within the radiative codes using those radii as input ! ! For the "old" radiative code (2 bands), we need to provide cloud optical depth for each layer and cloud emissivity ! this is why there is a section below computing those two quantities ! ! Authors: Z.X. Li (LMD/CNRS) date: 19930910 ! O.Boucher (LMD/CNRS) mise a jour en 201212 ! I. Musat (LMD/CNRS) : prise en compte de la meme hypothese ! de recouvrement pour les nuages que pour ! le rayonnement rrtm via le parametre ! novlp de radopt.h : 20160721 ! L.Fairheard, E.Vignon, JB Madeleine, L. Raillard, A. Idelkadi ! M. Coulon-Decorzens: replayisation of the routine + cleaning ! and commentaries ! "atelier optics of clouds": careful reading and comments ! things to address -> see ?aoc ! E. Vignon: comments + cleaning + structuration ! ! ====================================================================== ! List of arguments !------------------ ! aoc all the pi arguments should be optional ! INPUT: !------- INTEGER, INTENT(IN) :: klon, klev ! number of horizontal and vertical grid points REAL, INTENT(IN) :: paprs(klon, klev+1)! pressure at bottom interfaces [Pa] REAL, INTENT(IN) :: pplay(klon, klev) ! pressure at the middle of layers [Pa] REAL, INTENT(IN) :: temp(klon, klev) ! temperature [K] REAL, INTENT(IN) :: radocond(klon, klev) ! cloud condensed water seen by radiation [kg/kg] REAL, INTENT(IN) :: radicefrac(klon, klev) ! ice fraction of cloud condensed water seen by radiation [-] REAL, INTENT(IN) :: mass_solu_aero(klon, klev) ! total mass concentration for all soluble aerosols [ug m-3] REAL, INTENT(IN) :: mass_solu_aero_pi(klon, klev) ! - (pre-industrial value) REAL, INTENT(IN) :: dNovrN(klon) ! enhancement factor for cdnc REAL, INTENT(IN) :: cldfra(klon, klev) ! cloud fraction for radiation [-] ?aoc ! OUTPUT: !-------- ! actual optical variables used as inputs for the radiative scheme REAL, INTENT(OUT) :: reliq(klon, klev) ! liquid droplet effective radius [um] REAL, INTENT(OUT) :: reice(klon, klev) ! ice effective radius [um] REAL, INTENT(OUT) :: reliq_pi(klon, klev)! liquid droplet effective radius [um], pre-industrial REAL, INTENT(OUT) :: reice_pi(klon, klev)! ice effective radius [um], pre-industrial REAL, INTENT(OUT) :: cldtau(klon, klev) ! cloud optical depth REAL, INTENT(OUT) :: cldtau_pi(klon, klev) ! cloud optical depth, pre-industrial REAL, INTENT(OUT) :: cldemi(klon, klev) ! cloud emissivity REAL, INTENT(OUT) :: cdnc(klon, klev) ! in-cloud number concentration [m-3] REAL, INTENT(OUT) :: cdnc_pi(klon, klev) ! in-cloud number concentration, pre-industrial [m-3] ! Local variables !---------------- LOGICAL lo INTEGER i, k REAL rel, tc, rei, iwc, dei, deimin, deimax REAL k_ice REAL re_pi(klon, klev) ! cloud droplet effective radius [microns] (pi value) REAL rhodz(klon, klev) !--rho*dz of layer REAL zrho(klon, klev) !--rho of layer REAL rad_chaud(klon, klev) !--radius for warm ("chaud") liquid clouds [microns] REAL rad_chaud_pi(klon, klev) !--radius for warm ("chaud") liquid clouds, pre-industrial [microns] REAL zflwp_var, zfiwp_var REAL d_rei_dt !===================================================================================== ! Initialisation !=============== reliq(:,:) = 0. reice(:,:) = 0. reliq_pi(:,:) = 0. reice_pi(:,:) = 0. DO k = 1,klev DO i = 1,klon rhodz(i, k) = (paprs(i,k)-paprs(i,k+1))/rg ! kg/m2 zrho(i, k) = pplay(i, k)/temp(i, k)/rd ! kg/m3 END DO END DO ! Computation of cloud droplet effective radius !=============================================== ! There 2 options to compute cloud droplet effective radius: ! if ok_cdnc: we compute cloud radius as a function of an in-cloud number concentration of cloud droplets (cdnc) ! depending on the concentration of soluble aerosols ! otherwise, cloud droplet radius is fixed to a constant value (in fact one constant for the first three layers, another ! one for layers above ! if ok_cdnc, let's first compute the in-cloud droplet number concentration IF (ok_cdnc) THEN ! Pre-industrial cloud droplet concentrations DO k = 1, klev DO i = 1, klon ! Formula "D" of Boucher and Lohmann, Tellus, 1995 ! Cloud droplet number concentration (CDNC) is restricted ! to be within [20, 1000 cm^3] cdnc_pi(i, k) = 10.**(bl95_b0+bl95_b1*log(max(mass_solu_aero_pi(i,k), & 1.E-4))/log(10.))*1.E6 !-m-3 cdnc_pi(i, k) = min(cdnc_max_m3, max(cdnc_min_m3,cdnc_pi(i,k))) ENDDO ENDDO ! Present day cloud droplet concentrations IF (flag_aerosol .EQ. 7) THEN ! flag_aerosol=7 => MACv2SP climatology ! in this case we apply an enhancement factor dNovrN on the pi value DO k = 1, klev DO i = 1, klon cdnc(i, k) = cdnc_pi(i,k)*dNovrN(i) ENDDO ENDDO ELSE ! standard configuration using the same formula as above but ! considering present day aerosols concentrations DO k = 1, klev DO i = 1, klon cdnc(i, k) = 10.**(bl95_b0+bl95_b1*log(max(mass_solu_aero(i,k), & 1.E-4))/log(10.))*1.E6 !-m-3 cdnc(i, k) = min(cdnc_max_m3, max(cdnc_min_m3,cdnc(i,k))) ENDDO ENDDO ENDIF !--flag_aerosol ENDIF ! Cloud droplet effective radius [microns] calculation ! controled by ok_cdnc and iflag_cdreff IF (ok_cdnc .AND. iflag_cdreff .EQ. 0) THEN ! aerosol-aware formulation used until CMIP6 ! Warning! the formula is erroneous as it ! considers the liq+ice water mass and ! the mesh-averaged (and not the in-cloud) ! contents DO k = 1, klev DO i = 1, klon ! --pre-industrial case rad_chaud_pi(i, k) = 1.1*(((radocond(i,k))*pplay(i, & k)/(rd*temp(i,k)))/(4./3.*rpi*rhol*cdnc_pi(i,k)))**(1./3.) rad_chaud_pi(i, k) = max(rad_chaud_pi(i,k)*1.E6, 5.) ! --present-day case rad_chaud(i, k) = 1.1*(((radocond(i,k))*pplay(i, & k)/(rd*temp(i,k)))/(4./3*rpi*rhol*cdnc(i,k)))**(1./3.) rad_chaud(i, k) = max(rad_chaud(i,k)*1.E6, 5.) END DO END DO ELSE IF (ok_cdnc .AND. iflag_cdreff .EQ. 1) THEN ! similar as above but debugged DO k = 1, klev DO i = 1, klon ! --pre-industrial case rad_chaud_pi(i, k) = (radocond(i,k)*(1.-radicefrac(i,k))/max(cldfra(i,k),seuil_neb)*pplay(i, & k)/(rd*temp(i,k))/(4./3.*rpi*rhol*cdnc_pi(i,k)))**(1./3.) rad_chaud_pi(i, k) = min(max(rad_chaud_pi(i,k)*1.E6, 5.),100.) ! --present-day case rad_chaud(i, k) = (radocond(i,k)*(1.-radicefrac(i,k))/max(cldfra(i,k),seuil_neb)*pplay(i, & k)/(rd*temp(i,k))/(4./3*rpi*rhol*cdnc(i,k)))**(1./3.) rad_chaud(i, k) = min(max(rad_chaud(i,k)*1.E6, 5.),100.) ENDDO ENDDO ELSE ! ok_cdnc ! -fixed (prescribed) cloud droplet effective radius values DO k = 1, min(3, klev) DO i = 1, klon rad_chaud(i, k) = rad_chau2 rad_chaud_pi(i, k) = rad_chau2 ENDDO ENDDO DO k = min(3, klev) + 1, klev DO i = 1, klon rad_chaud(i, k) = rad_chau1 rad_chaud_pi(i, k) = rad_chau1 ENDDO ENDDO ENDIF ! ok_cdnc ! Fill output variables reliq and reliq_pi DO k = 1, klev DO i = 1, klon reliq(i, k) = rad_chaud(i, k) reliq_pi(i, k) = rad_chaud_pi(i, k) END DO END DO ! Computation of ice crystal effective radius [microns] !====================================================== DO k = 1, klev DO i = 1, klon IF (cldfra(i,k)>seuil_neb) THEN ! in-cloud ice water content in g/m3 iwc = radocond(i,k)*radicefrac(i,k) / cldfra(i,k) * zrho(i,k) * 1000. IF (iflag_rei .EQ. 2) THEN ! this formula is a simplified version of the Sun 2001 one (as in the IFS model, ! and which is activated for iflag_rei = 1). ! In particular, the term in temperature**2 has been simplified. ! The new coefs are tunable, and are by default set so that the results fit well ! to the Sun 2001 formula ! By default, rei_coef = 2.4 and rei_min_temp = 175. ! The ranges of these parameters are determined so that the RMSE between this ! formula and the one from Sun 2001 is less than 4 times the minimum RMSE ! The ranges are [1.9, 2.9] for rei_coef and [160., 185.] for rei_min_temp dei = rei_coef * (iwc**0.2445) * ( temp(i,k) - rei_min_temp ) ! we clip the results deimin = 20. deimax = 155. dei = MIN(MAX(dei, deimin), deimax) ! formula to convert effective diameter to effective radius rei = 3. * SQRT(3.) / 8. * dei ELSEIF (iflag_rei .EQ. 1) THEN ! when we account for precipitation in the radiation scheme, ! we use the rei formula from Sun and Rikkus 1999 with a revision ! from Sun 2001 (as in the IFS model) dei=(1.2351+0.0105*(temp(i,k)-273.15))*(45.8966*(iwc**0.2214) + & &0.7957*(iwc**0.2535)*(temp(i,k)-83.15)) !deimax=155.0 !deimin=20.+40*cos(abs(latitude_deg(i))/180.*RPI) !Etienne: deimax and deimin controled by rei_max and rei_min in physiq.def deimax=rei_max*2.0 deimin=2.0*rei_min+40*cos(abs(latitude_deg(i))/180.*RPI) dei=min(dei,deimax) dei=max(dei,deimin) rei=3.*sqrt(3.)/8.*dei ELSE ! Default ! for ice clouds: as a function of the ambiant temperature ! [formula used by Iacobellis and Somerville (2000), with an ! asymptotical value of 3.5 microns at T<-81.4 C added to be ! consistent with observations of Heymsfield et al. 1986]: ! 2011/05/24 : rei_min = 3.5 becomes a free PARAMETER as well as ! rei_max=61.29 ! rei = ( rei_max - rei_min ) * T(°C) / 81.4 + rei_max ! to be used for a temperature in celcius T(°C) < 0 ! rei=rei_min for T(°C) < -81.4 ! Computation of slope for ice crystal effective radius=f(T) ! For consistency with original version, we impoe 0.71 when ! close to this value d_rei_dt = (rei_max-rei_min)/81.4 IF (abs(d_rei_dt-0.71)<1.E-4) d_rei_dt = 0.71 tc = temp(i, k) - 273.15 rei = d_rei_dt*tc + rei_max IF (tc<=-81.4) rei = rei_min ENDIF ELSE ! cldfra > seuil_neb rei = 0. ENDIF reice(i, k) = rei ! same radius for pi conditions reice_pi(i,k) = reice(i,k) ENDDO ENDDO ! Computation of cloud optical depth and emissivity !=================================================== DO k = 1, klev DO i = 1, klon IF (cldfra(i,k)<=seuil_neb) THEN rel = 0. rei = 0. cldtau(i, k) = 0.0 cldtau_pi(i, k) = 0.0 cldemi(i, k) = 0.0 ELSE rel = rad_chaud(i, k) rei = reice(i,k) ! mass of in-cloud condensates in g zflwp_var = 1000.*radocond(i, k)*(1.-radicefrac(i,k))/cldfra(i, k)*rhodz(i, k) zfiwp_var = 1000.*radocond(i, k)*radicefrac(i,k)/cldfra(i, k)*rhodz(i, k) IF (zflwp_var==0.) rel = 1. IF (zfiwp_var==0. .OR. rei<=0.) rei = 1. ! -- cloud optical thickness : ! [for liquid clouds, traditional formula, ! for ice clouds, Ebert & Curry (1992)] cldtau(i, k) = 3.0/2.0*(zflwp_var/rel) & + zfiwp_var*(3.448E-03+2.431/ rei) IF (ok_cdnc) THEN cldtau_pi(i, k) = 3.0/2.0*zflwp_var/rad_chaud_pi(i, k) + & zfiwp_var*(3.448E-03+2.431/rei) ELSE ! -- if cloud droplet radius is fixed, plcdtaupi = plcdtau cldtau_pi(i, k) = cldtau(i,k) END IF ! -- cloud infrared emissivity: ! [the broadband infrared absorption coefficient is parameterized ! as a function of the effective cloud droplet radius] ! Ebert and Curry (1992) formula as used by Kiehl & Zender (1995): k_ice = k_ice0 + 1.0/rei cldemi(i, k) = 1.0 - exp(-coef_chau*zflwp_var-df*k_ice*zfiwp_var) ENDIF ENDDO ENDDO RETURN END SUBROUTINE cld2rad_micro END MODULE lmdz_cld2rad_micro