[3908] | 1 | SUBROUTINE SRTM_TAUMOL26 & |
---|
| 2 | & ( KIDIA , KFDIA , KLEV,& |
---|
| 3 | & P_COLMOL ,K_LAYTROP,& |
---|
| 4 | & P_SFLUXZEN, P_TAUG , P_TAUR , PRMU0 & |
---|
| 5 | & ) |
---|
| 6 | |
---|
| 7 | ! Written by Eli J. Mlawer, Atmospheric & Environmental Research. |
---|
| 8 | |
---|
| 9 | ! BAND 26: 22650-29000 cm-1 (low - nothing; high - nothing) |
---|
| 10 | |
---|
| 11 | ! PARAMETER (MG=16, MXLAY=203, NBANDS=14) |
---|
| 12 | |
---|
| 13 | ! Modifications |
---|
| 14 | ! M.Hamrud 01-Oct-2003 CY28 Cleaning |
---|
| 15 | |
---|
| 16 | ! JJMorcrette 2003-02-24 adapted to ECMWF environment |
---|
| 17 | ! D.Salmond 31-Oct-2007 Vector version in the style of RRTM from Meteo France & NEC |
---|
| 18 | ! JJMorcrette 20110610 Flexible configuration for number of g-points |
---|
| 19 | |
---|
| 20 | USE PARKIND1 , ONLY : JPIM, JPRB |
---|
| 21 | USE YOMHOOK , ONLY : LHOOK, DR_HOOK |
---|
| 22 | USE PARSRTM , ONLY : JPG |
---|
| 23 | USE YOESRTM , ONLY : NG26 |
---|
| 24 | USE YOESRTA26, ONLY : SFLUXREFC, RAYLC |
---|
| 25 | |
---|
| 26 | IMPLICIT NONE |
---|
| 27 | |
---|
| 28 | !-- Output |
---|
| 29 | INTEGER(KIND=JPIM),INTENT(IN) :: KIDIA, KFDIA |
---|
| 30 | INTEGER(KIND=JPIM),INTENT(IN) :: KLEV |
---|
| 31 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLMOL(KIDIA:KFDIA,KLEV) |
---|
| 32 | INTEGER(KIND=JPIM),INTENT(IN) :: K_LAYTROP(KIDIA:KFDIA) |
---|
| 33 | |
---|
| 34 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_SFLUXZEN(KIDIA:KFDIA,JPG) |
---|
| 35 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUG(KIDIA:KFDIA,KLEV,JPG) |
---|
| 36 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUR(KIDIA:KFDIA,KLEV,JPG) |
---|
| 37 | REAL(KIND=JPRB) ,INTENT(IN) :: PRMU0(KIDIA:KFDIA) |
---|
| 38 | !- from AER |
---|
| 39 | !- from INTFAC |
---|
| 40 | !- from INTIND |
---|
| 41 | !- from PRECISE |
---|
| 42 | !- from PROFDATA |
---|
| 43 | !- from SELF |
---|
| 44 | INTEGER(KIND=JPIM) :: IG, I_LAY, I_LAYSOLFR(KIDIA:KFDIA), I_NLAYERS, IPLON |
---|
| 45 | |
---|
| 46 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
| 47 | |
---|
| 48 | ASSOCIATE(NFLEVG=>KLEV) |
---|
| 49 | IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL26',0,ZHOOK_HANDLE) |
---|
| 50 | |
---|
| 51 | I_NLAYERS = KLEV |
---|
| 52 | |
---|
| 53 | ! Compute the optical depth by interpolating in ln(pressure), |
---|
| 54 | ! temperature, and appropriate species. Below LAYTROP, the water |
---|
| 55 | ! vapor self-continuum is interpolated (in temperature) separately. |
---|
| 56 | |
---|
| 57 | I_LAYSOLFR(KIDIA:KFDIA) = K_LAYTROP(KIDIA:KFDIA) |
---|
| 58 | |
---|
| 59 | DO I_LAY = 1, I_NLAYERS |
---|
| 60 | DO IPLON = KIDIA, KFDIA |
---|
| 61 | IF (PRMU0(IPLON) > 0.0_JPRB) THEN |
---|
| 62 | IF (I_LAY <= K_LAYTROP(IPLON)) THEN |
---|
| 63 | ! DO IG = 1, NG(26) |
---|
| 64 | !CDIR UNROLL=NG26 |
---|
| 65 | DO IG = 1 , NG26 |
---|
| 66 | ! TAUG(LAY,IG) = COLMOL(LAY) * RAYLC(IG) |
---|
| 67 | ! SSA(LAY,IG) = 1.0 |
---|
| 68 | IF (I_LAY == I_LAYSOLFR(IPLON)) P_SFLUXZEN(IPLON,IG) = SFLUXREFC(IG) |
---|
| 69 | P_TAUG(IPLON,I_LAY,IG) = 0.0_JPRB |
---|
| 70 | P_TAUR(IPLON,I_LAY,IG) = P_COLMOL(IPLON,I_LAY) * RAYLC(IG) |
---|
| 71 | ENDDO |
---|
| 72 | ENDIF |
---|
| 73 | ENDIF |
---|
| 74 | ENDDO |
---|
| 75 | ENDDO |
---|
| 76 | |
---|
| 77 | DO I_LAY = 1, I_NLAYERS |
---|
| 78 | DO IPLON = KIDIA, KFDIA |
---|
| 79 | IF (PRMU0(IPLON) > 0.0_JPRB) THEN |
---|
| 80 | IF (I_LAY >= K_LAYTROP(IPLON)+1) THEN |
---|
| 81 | ! DO IG = 1, NG(26) |
---|
| 82 | !CDIR UNROLL=NG26 |
---|
| 83 | DO IG = 1 , NG26 |
---|
| 84 | ! TAUG(LAY,IG) = COLMOL(LAY) * RAYLC(IG) |
---|
| 85 | ! SSA(LAY,IG) = 1.0 |
---|
| 86 | P_TAUG(IPLON,I_LAY,IG) = 0.0_JPRB |
---|
| 87 | P_TAUR(IPLON,I_LAY,IG) = P_COLMOL(IPLON,I_LAY) * RAYLC(IG) |
---|
| 88 | ENDDO |
---|
| 89 | ENDIF |
---|
| 90 | ENDIF |
---|
| 91 | ENDDO |
---|
| 92 | ENDDO |
---|
| 93 | |
---|
| 94 | !----------------------------------------------------------------------- |
---|
| 95 | IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL26',1,ZHOOK_HANDLE) |
---|
| 96 | END ASSOCIATE |
---|
| 97 | END SUBROUTINE SRTM_TAUMOL26 |
---|