1 | !---------------------------------------------------------------------------- |
---|
2 | SUBROUTINE RRTM_TAUMOL13 (KLEV,P_TAU,& |
---|
3 | & P_TAUAERL,P_FAC00,P_FAC01,P_FAC10,P_FAC11,K_JP,K_JT,K_JT1,P_ONEMINUS,& |
---|
4 | & P_COLH2O,P_COLN2O,K_LAYTROP,P_SELFFAC,P_SELFFRAC,K_INDSELF,PFRAC) |
---|
5 | |
---|
6 | ! BAND 13: 2080-2250 cm-1 (low - H2O,N2O; high - nothing) |
---|
7 | |
---|
8 | ! Modifications |
---|
9 | ! M.Hamrud 01-Oct-2003 CY28 Cleaning |
---|
10 | |
---|
11 | ! D Salmond 2000-05-15 speed-up |
---|
12 | |
---|
13 | USE PARKIND1 ,ONLY : JPIM ,JPRB |
---|
14 | USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
---|
15 | |
---|
16 | USE PARRRTM , ONLY : JPLAY ,JPBAND ,JPGPT ,NG13 ,NGS12 |
---|
17 | USE YOERRTWN , ONLY : NSPA |
---|
18 | USE YOERRTA13, ONLY : ABSA ,FRACREFA,SELFREF,STRRAT |
---|
19 | |
---|
20 | ! Input |
---|
21 | !#include "yoeratm.h" |
---|
22 | |
---|
23 | ! REAL TAUAER(JPLAY) |
---|
24 | |
---|
25 | IMPLICIT NONE |
---|
26 | |
---|
27 | ! Output |
---|
28 | INTEGER(KIND=JPIM),INTENT(IN) :: KLEV |
---|
29 | REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAU(JPGPT,JPLAY) |
---|
30 | REAL(KIND=JPRB) ,INTENT(IN) :: P_TAUAERL(JPLAY,JPBAND) |
---|
31 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC00(JPLAY) |
---|
32 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC01(JPLAY) |
---|
33 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC10(JPLAY) |
---|
34 | REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC11(JPLAY) |
---|
35 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JP(JPLAY) |
---|
36 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JT(JPLAY) |
---|
37 | INTEGER(KIND=JPIM),INTENT(IN) :: K_JT1(JPLAY) |
---|
38 | REAL(KIND=JPRB) ,INTENT(IN) :: P_ONEMINUS |
---|
39 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLH2O(JPLAY) |
---|
40 | REAL(KIND=JPRB) ,INTENT(IN) :: P_COLN2O(JPLAY) |
---|
41 | INTEGER(KIND=JPIM),INTENT(IN) :: K_LAYTROP |
---|
42 | REAL(KIND=JPRB) ,INTENT(IN) :: P_SELFFAC(JPLAY) |
---|
43 | REAL(KIND=JPRB) ,INTENT(IN) :: P_SELFFRAC(JPLAY) |
---|
44 | INTEGER(KIND=JPIM),INTENT(IN) :: K_INDSELF(JPLAY) |
---|
45 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFRAC(JPGPT,JPLAY) |
---|
46 | !- from AER |
---|
47 | !- from INTFAC |
---|
48 | !- from INTIND |
---|
49 | !- from PRECISE |
---|
50 | !- from PROFDATA |
---|
51 | !- from SELF |
---|
52 | !- from SP |
---|
53 | INTEGER(KIND=JPIM) :: IJS(JPLAY) |
---|
54 | REAL(KIND=JPRB) :: ZFS(JPLAY),Z_SPECCOMB(JPLAY) |
---|
55 | INTEGER(KIND=JPIM) :: IND0(JPLAY),IND1(JPLAY),INDS(JPLAY) |
---|
56 | |
---|
57 | INTEGER(KIND=JPIM) :: IG, JS, I_LAY |
---|
58 | |
---|
59 | REAL(KIND=JPRB) :: Z_FAC000, Z_FAC001, Z_FAC010, Z_FAC011, Z_FAC100, Z_FAC101,& |
---|
60 | & Z_FAC110, Z_FAC111, Z_FS, Z_SPECMULT, Z_SPECPARM |
---|
61 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
62 | |
---|
63 | ! EQUIVALENCE (TAUAERL(1,13),TAUAER) |
---|
64 | |
---|
65 | ! Compute the optical depth by interpolating in ln(pressure), |
---|
66 | ! temperature, and appropriate species. Below LAYTROP, the water |
---|
67 | ! vapor self-continuum is interpolated (in temperature) separately. |
---|
68 | |
---|
69 | IF (LHOOK) CALL DR_HOOK('RRTM_TAUMOL13',0,ZHOOK_HANDLE) |
---|
70 | DO I_LAY = 1, K_LAYTROP |
---|
71 | Z_SPECCOMB(I_LAY) = P_COLH2O(I_LAY) + STRRAT*P_COLN2O(I_LAY) |
---|
72 | Z_SPECPARM = P_COLH2O(I_LAY)/Z_SPECCOMB(I_LAY) |
---|
73 | Z_SPECPARM=MIN(P_ONEMINUS,Z_SPECPARM) |
---|
74 | Z_SPECMULT = 8._JPRB*(Z_SPECPARM) |
---|
75 | JS = 1 + INT(Z_SPECMULT) |
---|
76 | Z_FS = MOD(Z_SPECMULT,1.0_JPRB) |
---|
77 | IND0(I_LAY) = ((K_JP(I_LAY)-1)*5+(K_JT(I_LAY)-1))*NSPA(13) + JS |
---|
78 | IND1(I_LAY) = (K_JP(I_LAY)*5+(K_JT1(I_LAY)-1))*NSPA(13) + JS |
---|
79 | INDS(I_LAY) = K_INDSELF(I_LAY) |
---|
80 | |
---|
81 | ZFS(I_LAY)=Z_FS |
---|
82 | IJS(I_LAY)=JS |
---|
83 | |
---|
84 | ENDDO |
---|
85 | |
---|
86 | !-- DS_000515 |
---|
87 | DO IG = 1, NG13 |
---|
88 | DO I_LAY = 1, K_LAYTROP |
---|
89 | !-- DS_000515 |
---|
90 | |
---|
91 | Z_FS=ZFS(I_LAY) |
---|
92 | JS=IJS(I_LAY) |
---|
93 | !---jjm |
---|
94 | ! FAC000 = (_ONE_ - FS) * FAC00(LAY) |
---|
95 | ! FAC010 = (_ONE_ - FS) * FAC10(LAY) |
---|
96 | ! FAC100 = FS * FAC00(LAY) |
---|
97 | ! FAC110 = FS * FAC10(LAY) |
---|
98 | ! FAC001 = (_ONE_ - FS) * FAC01(LAY) |
---|
99 | ! FAC011 = (_ONE_ - FS) * FAC11(LAY) |
---|
100 | ! FAC101 = FS * FAC01(LAY) |
---|
101 | ! FAC111 = FS * FAC11(LAY) |
---|
102 | !---- |
---|
103 | P_TAU (NGS12+IG,I_LAY) = Z_SPECCOMB(I_LAY) *& |
---|
104 | !-- DS_000515 |
---|
105 | & ( (1. - Z_FS) *( P_FAC00(I_LAY) * ABSA(IND0(I_LAY) ,IG) + & |
---|
106 | & P_FAC10(I_LAY) * ABSA(IND0(I_LAY)+ 9,IG) + & |
---|
107 | & P_FAC01(I_LAY) * ABSA(IND1(I_LAY) ,IG) + & |
---|
108 | & P_FAC11(I_LAY) * ABSA(IND1(I_LAY)+ 9,IG))+ & |
---|
109 | & Z_FS *( P_FAC00(I_LAY) * ABSA(IND0(I_LAY)+ 1,IG) + & |
---|
110 | & P_FAC10(I_LAY) * ABSA(IND0(I_LAY)+10,IG) + & |
---|
111 | & P_FAC01(I_LAY) * ABSA(IND1(I_LAY)+ 1,IG) + & |
---|
112 | & P_FAC11(I_LAY) * ABSA(IND1(I_LAY)+10,IG))) + & |
---|
113 | ! &(Z_FAC000 * ABSA(IND0(I_LAY) ,IG) +& |
---|
114 | ! & Z_FAC100 * ABSA(IND0(I_LAY)+ 1,IG) +& |
---|
115 | ! & Z_FAC010 * ABSA(IND0(I_LAY)+ 9,IG) +& |
---|
116 | ! & Z_FAC110 * ABSA(IND0(I_LAY)+10,IG) +& |
---|
117 | ! & Z_FAC001 * ABSA(IND1(I_LAY) ,IG) +& |
---|
118 | ! & Z_FAC101 * ABSA(IND1(I_LAY)+ 1,IG) +& |
---|
119 | ! & Z_FAC011 * ABSA(IND1(I_LAY)+ 9,IG) +& |
---|
120 | ! & Z_FAC111 * ABSA(IND1(I_LAY)+10,IG))+& |
---|
121 | !-- DS_000515 |
---|
122 | & P_COLH2O(I_LAY) * & |
---|
123 | & P_SELFFAC(I_LAY) * (SELFREF(INDS(I_LAY),IG) + & |
---|
124 | & P_SELFFRAC(I_LAY) *& |
---|
125 | & (SELFREF(INDS(I_LAY)+1,IG) - SELFREF(INDS(I_LAY),IG)))& |
---|
126 | & + P_TAUAERL(I_LAY,13) |
---|
127 | PFRAC(NGS12+IG,I_LAY) = FRACREFA(IG,JS) + Z_FS *& |
---|
128 | & (FRACREFA(IG,JS+1) - FRACREFA(IG,JS)) |
---|
129 | ENDDO |
---|
130 | ENDDO |
---|
131 | |
---|
132 | !-- JJM_000517 |
---|
133 | DO IG = 1, NG13 |
---|
134 | DO I_LAY = K_LAYTROP+1, KLEV |
---|
135 | !-- JJM_000517 |
---|
136 | P_TAU (NGS12+IG,I_LAY) = P_TAUAERL(I_LAY,13) |
---|
137 | PFRAC(NGS12+IG,I_LAY) = 0.0_JPRB |
---|
138 | ENDDO |
---|
139 | ENDDO |
---|
140 | |
---|
141 | IF (LHOOK) CALL DR_HOOK('RRTM_TAUMOL13',1,ZHOOK_HANDLE) |
---|
142 | END SUBROUTINE RRTM_TAUMOL13 |
---|