[1989] | 1 | SUBROUTINE SRTM_TAUMOL20 & |
---|
| 2 | & ( KLEV,& |
---|
| 3 | & P_FAC00 , P_FAC01 , P_FAC10 , P_FAC11,& |
---|
| 4 | & K_JP , K_JT , K_JT1 , P_ONEMINUS,& |
---|
| 5 | & P_COLH2O , P_COLCH4 , P_COLMOL,& |
---|
| 6 | & K_LAYTROP , P_SELFFAC, P_SELFFRAC, K_INDSELF , P_FORFAC, P_FORFRAC, K_INDFOR,& |
---|
| 7 | & P_SFLUXZEN, P_TAUG , P_TAUR & |
---|
| 8 | & ) |
---|
| 9 | |
---|
| 10 | ! Written by Eli J. Mlawer, Atmospheric & Environmental Research. |
---|
| 11 | |
---|
| 12 | ! BAND 20: 5150-6150 cm-1 (low - H2O; high - H2O) |
---|
| 13 | |
---|
| 14 | ! Modifications |
---|
| 15 | ! M.Hamrud 01-Oct-2003 CY28 Cleaning |
---|
| 16 | |
---|
| 17 | ! JJMorcrette 2003-02-24 adapted to ECMWF environment |
---|
| 18 | |
---|
| 19 | ! PARAMETER (MG=16, MXLAY=203, NBANDS=14) |
---|
| 20 | |
---|
| 21 | USE PARKIND1 ,ONLY : JPIM ,JPRB |
---|
| 22 | USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
---|
| 23 | |
---|
| 24 | USE PARSRTM , ONLY : JPLAY, JPG, NG20 |
---|
| 25 | USE YOESRTA20, ONLY : ABSA, ABSB, FORREFC, SELFREFC & |
---|
| 26 | & , SFLUXREFC, ABSCH4C, RAYL & |
---|
| 27 | & , LAYREFFR |
---|
| 28 | USE YOESRTWN , ONLY : NSPA, NSPB |
---|
| 29 | |
---|
| 30 | IMPLICIT NONE |
---|
| 31 | |
---|
| 32 | !-- Output |
---|
| 33 | INTEGER(KIND=JPIM),INTENT(IN) :: KLEV |
---|
| 34 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC00(JPLAY) |
---|
| 35 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC01(JPLAY) |
---|
| 36 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC10(JPLAY) |
---|
| 37 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC11(JPLAY) |
---|
| 38 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JP(JPLAY) |
---|
| 39 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JT(JPLAY) |
---|
| 40 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JT1(JPLAY) |
---|
| 41 | REAL(KIND=JPRB) :: P_ONEMINUS ! Argument NOT used |
---|
| 42 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLH2O(JPLAY) |
---|
| 43 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLCH4(JPLAY) |
---|
| 44 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLMOL(JPLAY) |
---|
| 45 | INTEGER(KIND=JPIM),INTENT(IN) :: K_LAYTROP |
---|
| 46 | REAL(KIND=JPRB) ,INTENT(IN) :: P_SELFFAC(JPLAY) |
---|
| 47 | REAL(KIND=JPRB) ,INTENT(IN) :: P_SELFFRAC(JPLAY) |
---|
| 48 | INTEGER(KIND=JPIM),INTENT(IN) :: K_INDSELF(JPLAY) |
---|
| 49 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FORFAC(JPLAY) |
---|
| 50 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FORFRAC(JPLAY) |
---|
| 51 | INTEGER(KIND=JPIM),INTENT(IN) :: K_INDFOR(JPLAY) |
---|
| 52 | |
---|
| 53 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_SFLUXZEN(JPG) |
---|
| 54 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUG(JPLAY,JPG) |
---|
| 55 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUR(JPLAY,JPG) |
---|
| 56 | !- from INTFAC |
---|
| 57 | !- from INTIND |
---|
| 58 | !- from PRECISE |
---|
| 59 | !- from PROFDATA |
---|
| 60 | !- from SELF |
---|
| 61 | INTEGER(KIND=JPIM) :: IG, IND0, IND1, INDS, INDF, I_LAY, I_LAYSOLFR, I_NLAYERS |
---|
| 62 | |
---|
| 63 | REAL(KIND=JPRB) :: & |
---|
| 64 | & Z_TAURAY |
---|
| 65 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
| 66 | |
---|
| 67 | IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL20',0,ZHOOK_HANDLE) |
---|
| 68 | I_NLAYERS = KLEV |
---|
| 69 | |
---|
| 70 | ! Compute the optical depth by interpolating in ln(pressure), |
---|
| 71 | ! temperature, and appropriate species. Below LAYTROP, the water |
---|
| 72 | ! vapor self-continuum is interpolated (in temperature) separately. |
---|
| 73 | |
---|
| 74 | I_LAYSOLFR = K_LAYTROP |
---|
| 75 | |
---|
| 76 | DO I_LAY = 1, K_LAYTROP |
---|
| 77 | IF (K_JP(I_LAY) < LAYREFFR .AND. K_JP(I_LAY+1) >= LAYREFFR) & |
---|
| 78 | & I_LAYSOLFR = MIN(I_LAY+1,K_LAYTROP) |
---|
| 79 | IND0 = ((K_JP(I_LAY)-1)*5+(K_JT(I_LAY)-1))*NSPA(20) + 1 |
---|
| 80 | IND1 = (K_JP(I_LAY)*5+(K_JT1(I_LAY)-1))*NSPA(20) + 1 |
---|
| 81 | INDS = K_INDSELF(I_LAY) |
---|
| 82 | INDF = K_INDFOR(I_LAY) |
---|
| 83 | Z_TAURAY = P_COLMOL(I_LAY) * RAYL |
---|
| 84 | |
---|
| 85 | ! DO IG = 1, NG(20) |
---|
| 86 | DO IG = 1 , NG20 |
---|
| 87 | P_TAUG(I_LAY,IG) = P_COLH2O(I_LAY) * & |
---|
| 88 | & ((P_FAC00(I_LAY) * ABSA(IND0,IG) + & |
---|
| 89 | & P_FAC10(I_LAY) * ABSA(IND0+1,IG) + & |
---|
| 90 | & P_FAC01(I_LAY) * ABSA(IND1,IG) + & |
---|
| 91 | & P_FAC11(I_LAY) * ABSA(IND1+1,IG)) + & |
---|
| 92 | & P_SELFFAC(I_LAY) * (SELFREFC(INDS,IG) + & |
---|
| 93 | & P_SELFFRAC(I_LAY) * & |
---|
| 94 | & (SELFREFC(INDS+1,IG) - SELFREFC(INDS,IG))) + & |
---|
| 95 | & P_FORFAC(I_LAY) * (FORREFC(INDF,IG) + & |
---|
| 96 | & P_FORFRAC(I_LAY) * & |
---|
| 97 | & (FORREFC(INDF+1,IG) - FORREFC(INDF,IG)))) & |
---|
| 98 | & + P_COLCH4(I_LAY) * ABSCH4C(IG) |
---|
| 99 | ! & + TAURAY & |
---|
| 100 | ! SSA(LAY,IG) = TAURAY/TAUG(LAY,IG) |
---|
| 101 | P_TAUR(I_LAY,IG) = Z_TAURAY |
---|
| 102 | IF (I_LAY == I_LAYSOLFR) P_SFLUXZEN(IG) = SFLUXREFC(IG) |
---|
| 103 | ENDDO |
---|
| 104 | ENDDO |
---|
| 105 | |
---|
| 106 | DO I_LAY = K_LAYTROP+1, I_NLAYERS |
---|
| 107 | IND0 = ((K_JP(I_LAY)-13)*5+(K_JT(I_LAY)-1))*NSPB(20) + 1 |
---|
| 108 | IND1 = ((K_JP(I_LAY)-12)*5+(K_JT1(I_LAY)-1))*NSPB(20) + 1 |
---|
| 109 | INDF = K_INDFOR(I_LAY) |
---|
| 110 | Z_TAURAY = P_COLMOL(I_LAY) * RAYL |
---|
| 111 | |
---|
| 112 | ! DO IG = 1, NG(20) |
---|
| 113 | DO IG = 1 , NG20 |
---|
| 114 | P_TAUG(I_LAY,IG) = P_COLH2O(I_LAY) * & |
---|
| 115 | & (P_FAC00(I_LAY) * ABSB(IND0,IG) + & |
---|
| 116 | & P_FAC10(I_LAY) * ABSB(IND0+1,IG) + & |
---|
| 117 | & P_FAC01(I_LAY) * ABSB(IND1,IG) + & |
---|
| 118 | & P_FAC11(I_LAY) * ABSB(IND1+1,IG) + & |
---|
| 119 | & P_FORFAC(I_LAY) * (FORREFC(INDF,IG) + & |
---|
| 120 | & P_FORFRAC(I_LAY) * & |
---|
| 121 | & (FORREFC(INDF+1,IG) - FORREFC(INDF,IG)))) + & |
---|
| 122 | & P_COLCH4(I_LAY) * ABSCH4C(IG) |
---|
| 123 | ! & TAURAY + & |
---|
| 124 | ! SSA(LAY,IG) = TAURAY/TAUG(LAY,IG) |
---|
| 125 | P_TAUR(I_LAY,IG) = Z_TAURAY |
---|
| 126 | ENDDO |
---|
| 127 | ENDDO |
---|
| 128 | |
---|
| 129 | !----------------------------------------------------------------------- |
---|
| 130 | IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL20',1,ZHOOK_HANDLE) |
---|
| 131 | END SUBROUTINE SRTM_TAUMOL20 |
---|
| 132 | |
---|