[4773] | 1 | SUBROUTINE SRTM_TAUMOL25 & |
---|
| 2 | & ( KIDIA , KFDIA , KLEV,& |
---|
| 3 | & P_FAC00 , P_FAC01 , P_FAC10 , P_FAC11,& |
---|
| 4 | & K_JP , K_JT , K_JT1,& |
---|
| 5 | & P_COLH2O , P_COLMOL , P_COLO3,& |
---|
| 6 | & K_LAYTROP,& |
---|
| 7 | & P_SFLUXZEN, P_TAUG , P_TAUR , PRMU0 & |
---|
| 8 | & ) |
---|
| 9 | |
---|
| 10 | ! Written by Eli J. Mlawer, Atmospheric & Environmental Research. |
---|
| 11 | |
---|
| 12 | ! BAND 25: 16000-22650 cm-1 (low - H2O; high - nothing) |
---|
| 13 | |
---|
| 14 | ! PARAMETER (MG=16, MXLAY=203, NBANDS=14) |
---|
| 15 | |
---|
| 16 | ! Modifications |
---|
| 17 | ! M.Hamrud 01-Oct-2003 CY28 Cleaning |
---|
| 18 | |
---|
| 19 | ! JJMorcrette 2003-02-24 adapted to ECMWF environment |
---|
| 20 | ! D.Salmond 31-Oct-2007 Vector version in the style of RRTM from Meteo France & NEC |
---|
| 21 | ! JJMorcrette 20110610 Flexible configuration for number of g-points |
---|
| 22 | |
---|
| 23 | USE PARKIND1 , ONLY : JPIM, JPRB |
---|
| 24 | USE YOMHOOK , ONLY : LHOOK, DR_HOOK, JPHOOK |
---|
| 25 | USE PARSRTM , ONLY : JPG |
---|
| 26 | USE YOESRTM , ONLY : NG25 |
---|
| 27 | USE YOESRTA25, ONLY : ABSA, SFLUXREFC, ABSO3AC, ABSO3BC, RAYLC, LAYREFFR |
---|
| 28 | USE YOESRTWN , ONLY : NSPA |
---|
| 29 | |
---|
| 30 | IMPLICIT NONE |
---|
| 31 | |
---|
| 32 | !-- Output |
---|
| 33 | INTEGER(KIND=JPIM),INTENT(IN) :: KIDIA, KFDIA |
---|
| 34 | INTEGER(KIND=JPIM),INTENT(IN) :: KLEV |
---|
| 35 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC00(KIDIA:KFDIA,KLEV) |
---|
| 36 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC01(KIDIA:KFDIA,KLEV) |
---|
| 37 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC10(KIDIA:KFDIA,KLEV) |
---|
| 38 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC11(KIDIA:KFDIA,KLEV) |
---|
| 39 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JP(KIDIA:KFDIA,KLEV) |
---|
| 40 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JT(KIDIA:KFDIA,KLEV) |
---|
| 41 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JT1(KIDIA:KFDIA,KLEV) |
---|
| 42 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLH2O(KIDIA:KFDIA,KLEV) |
---|
| 43 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLMOL(KIDIA:KFDIA,KLEV) |
---|
| 44 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLO3(KIDIA:KFDIA,KLEV) |
---|
| 45 | INTEGER(KIND=JPIM),INTENT(IN) :: K_LAYTROP(KIDIA:KFDIA) |
---|
| 46 | |
---|
| 47 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_SFLUXZEN(KIDIA:KFDIA,JPG) |
---|
| 48 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUG(KIDIA:KFDIA,KLEV,JPG) |
---|
| 49 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUR(KIDIA:KFDIA,KLEV,JPG) |
---|
| 50 | REAL(KIND=JPRB) ,INTENT(IN) :: PRMU0(KIDIA:KFDIA) |
---|
| 51 | !- from INTFAC |
---|
| 52 | !- from INTIND |
---|
| 53 | !- from PRECISE |
---|
| 54 | !- from PROFDATA |
---|
| 55 | !- from SELF |
---|
| 56 | INTEGER(KIND=JPIM) :: IG, IND0, IND1, I_LAY, I_LAYSOLFR(KIDIA:KFDIA), I_NLAYERS, IPLON |
---|
| 57 | |
---|
| 58 | INTEGER(KIND=JPIM) :: I_LAY_NEXT |
---|
| 59 | |
---|
| 60 | REAL(KIND=JPRB) :: Z_TAURAY |
---|
| 61 | REAL(KIND=JPHOOK) :: ZHOOK_HANDLE |
---|
| 62 | |
---|
| 63 | IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL25',0,ZHOOK_HANDLE) |
---|
| 64 | |
---|
| 65 | I_NLAYERS = KLEV |
---|
| 66 | |
---|
| 67 | ! Compute the optical depth by interpolating in ln(pressure), |
---|
| 68 | ! temperature, and appropriate species. Below LAYTROP, the water |
---|
| 69 | ! vapor self-continuum is interpolated (in temperature) separately. |
---|
| 70 | |
---|
| 71 | I_LAYSOLFR(KIDIA:KFDIA) = K_LAYTROP(KIDIA:KFDIA) |
---|
| 72 | |
---|
| 73 | DO I_LAY = 1, I_NLAYERS |
---|
| 74 | I_LAY_NEXT = MIN(I_NLAYERS, I_LAY+1) |
---|
| 75 | DO IPLON = KIDIA, KFDIA |
---|
| 76 | IF (PRMU0(IPLON) > 0.0_JPRB) THEN |
---|
| 77 | IF (I_LAY <= K_LAYTROP(IPLON)) THEN |
---|
| 78 | IF (K_JP(IPLON,I_LAY) < LAYREFFR .AND. K_JP(IPLON,I_LAY_NEXT) >= LAYREFFR) & |
---|
| 79 | & I_LAYSOLFR(IPLON) = MIN(I_LAY+1,K_LAYTROP(IPLON)) |
---|
| 80 | IND0 = ((K_JP(IPLON,I_LAY)-1)*5+(K_JT(IPLON,I_LAY)-1))*NSPA(25) + 1 |
---|
| 81 | IND1 = (K_JP(IPLON,I_LAY)*5+(K_JT1(IPLON,I_LAY)-1))*NSPA(25) + 1 |
---|
| 82 | |
---|
| 83 | ! DO IG = 1, NG(25) |
---|
| 84 | !CDIR UNROLL=NG25 |
---|
| 85 | DO IG = 1 , NG25 |
---|
| 86 | Z_TAURAY = P_COLMOL(IPLON,I_LAY) * RAYLC(IG) |
---|
| 87 | P_TAUG(IPLON,I_LAY,IG) = P_COLH2O(IPLON,I_LAY) * & |
---|
| 88 | & (P_FAC00(IPLON,I_LAY) * ABSA(IND0,IG) + & |
---|
| 89 | & P_FAC10(IPLON,I_LAY) * ABSA(IND0+1,IG) + & |
---|
| 90 | & P_FAC01(IPLON,I_LAY) * ABSA(IND1,IG) + & |
---|
| 91 | & P_FAC11(IPLON,I_LAY) * ABSA(IND1+1,IG)) + & |
---|
| 92 | & P_COLO3(IPLON,I_LAY) * ABSO3AC(IG) |
---|
| 93 | ! & + TAURAY |
---|
| 94 | ! SSA(LAY,IG) = TAURAY/TAUG(LAY,IG) |
---|
| 95 | IF (I_LAY == I_LAYSOLFR(IPLON)) P_SFLUXZEN(IPLON,IG) = SFLUXREFC(IG) |
---|
| 96 | P_TAUR(IPLON,I_LAY,IG) = Z_TAURAY |
---|
| 97 | ENDDO |
---|
| 98 | ENDIF |
---|
| 99 | ENDIF |
---|
| 100 | ENDDO |
---|
| 101 | ENDDO |
---|
| 102 | |
---|
| 103 | DO I_LAY = 1, I_NLAYERS |
---|
| 104 | DO IPLON = KIDIA, KFDIA |
---|
| 105 | IF (PRMU0(IPLON) > 0.0_JPRB) THEN |
---|
| 106 | IF (I_LAY >= K_LAYTROP(IPLON)+1) THEN |
---|
| 107 | ! DO IG = 1, NG(25) |
---|
| 108 | !CDIR UNROLL=NG25 |
---|
| 109 | DO IG = 1 , NG25 |
---|
| 110 | Z_TAURAY = P_COLMOL(IPLON,I_LAY) * RAYLC(IG) |
---|
| 111 | P_TAUG(IPLON,I_LAY,IG) = P_COLO3(IPLON,I_LAY) * ABSO3BC(IG) |
---|
| 112 | ! & + TAURAY |
---|
| 113 | ! SSA(LAY,IG) = TAURAY/TAUG(LAY,IG) |
---|
| 114 | P_TAUR(IPLON,I_LAY,IG) = Z_TAURAY |
---|
| 115 | ENDDO |
---|
| 116 | ENDIF |
---|
| 117 | ENDIF |
---|
| 118 | ENDDO |
---|
| 119 | ENDDO |
---|
| 120 | |
---|
| 121 | !----------------------------------------------------------------------- |
---|
| 122 | IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL25',1,ZHOOK_HANDLE) |
---|
| 123 | |
---|
| 124 | END SUBROUTINE SRTM_TAUMOL25 |
---|