1 | SUBROUTINE SWCLR & |
---|
2 | & ( KIDIA , KFDIA , KLON , KLEV , KAER , KNU,& |
---|
3 | & PAER , PALBP , PDSIG , PRAYL , PSEC,& |
---|
4 | & PCGAZ , PPIZAZ, PRAY1 , PRAY2 , PREFZ , PRJ,& |
---|
5 | & PRK , PRMU0 , PTAUAZ, PTRA1 , PTRA2 , PTRCLR, & |
---|
6 | !++MODIFCODE |
---|
7 | & LRDUST,PPIZA_DST, PCGA_DST, PTAUREL_DST ) |
---|
8 | !--MODIFCODE |
---|
9 | |
---|
10 | !**** *SWCLR* - CLEAR-SKY COLUMN COMPUTATIONS |
---|
11 | |
---|
12 | ! PURPOSE. |
---|
13 | ! -------- |
---|
14 | ! COMPUTES THE REFLECTIVITY AND TRANSMISSIVITY IN CASE OF |
---|
15 | ! CLEAR-SKY COLUMN |
---|
16 | |
---|
17 | !** INTERFACE. |
---|
18 | ! ---------- |
---|
19 | |
---|
20 | ! *SWCLR* IS CALLED EITHER FROM *SW1S* |
---|
21 | ! OR FROM *SWNI* |
---|
22 | |
---|
23 | ! IMPLICIT ARGUMENTS : |
---|
24 | ! -------------------- |
---|
25 | |
---|
26 | ! ==== INPUTS === |
---|
27 | ! ==== OUTPUTS === |
---|
28 | |
---|
29 | ! METHOD. |
---|
30 | ! ------- |
---|
31 | |
---|
32 | ! EXTERNALS. |
---|
33 | ! ---------- |
---|
34 | |
---|
35 | ! NONE |
---|
36 | |
---|
37 | ! REFERENCE. |
---|
38 | ! ---------- |
---|
39 | |
---|
40 | ! SEE RADIATION'S PART OF THE ECMWF RESEARCH DEPARTMENT |
---|
41 | ! DOCUMENTATION, AND FOUQUART AND BONNEL (1980) |
---|
42 | |
---|
43 | ! AUTHOR. |
---|
44 | ! ------- |
---|
45 | ! JEAN-JACQUES MORCRETTE *ECMWF* |
---|
46 | |
---|
47 | ! MODIFICATIONS. |
---|
48 | ! -------------- |
---|
49 | ! ORIGINAL : 94-11-15 |
---|
50 | ! Modified : 96-03-19 JJM-PhD (loop 107 in absence of aerosols) |
---|
51 | ! JJMorcrette 990128 : sunshine duration |
---|
52 | ! JJMorcrette 990128 : sunshine duration |
---|
53 | ! 99-05-25 JJMorcrette Revised aerosols |
---|
54 | ! JJMorcrette 001218 : 6 spectral intervals |
---|
55 | ! 03-10-10 Deborah Salmond and Marta Janiskova Optimisation |
---|
56 | ! M.Hamrud 01-Oct-2003 CY28 Cleaning |
---|
57 | ! A.Grini (Meteo-France: 2005-11-10) |
---|
58 | ! Y.Seity 05-10-10 : add add 3 optional arg. for dust SW properties |
---|
59 | ! Y.Seity 06-09-09 : add modset from O.Thouron (MesoNH) under NOVLP tests |
---|
60 | ! ------------------------------------------------------------------ |
---|
61 | |
---|
62 | USE PARKIND1 ,ONLY : JPIM ,JPRB |
---|
63 | USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
---|
64 | |
---|
65 | USE YOESW , ONLY : RTAUA ,RPIZA ,RCGA |
---|
66 | !USE YOERAD , ONLY : NOVLP ,NSW |
---|
67 | ! NSW mis dans .def MPL 20140211 |
---|
68 | USE YOERAD , ONLY : NOVLP |
---|
69 | USE YOERDI , ONLY : REPCLC |
---|
70 | USE YOERDU , ONLY : REPSCT |
---|
71 | |
---|
72 | IMPLICIT NONE |
---|
73 | |
---|
74 | include "clesphys.h" |
---|
75 | |
---|
76 | INTEGER(KIND=JPIM),INTENT(IN) :: KLON |
---|
77 | INTEGER(KIND=JPIM),INTENT(IN) :: KLEV |
---|
78 | INTEGER(KIND=JPIM),INTENT(IN) :: KIDIA |
---|
79 | INTEGER(KIND=JPIM),INTENT(IN) :: KFDIA |
---|
80 | INTEGER(KIND=JPIM),INTENT(IN) :: KAER |
---|
81 | INTEGER(KIND=JPIM),INTENT(IN) :: KNU |
---|
82 | REAL(KIND=JPRB) ,INTENT(IN) :: PAER(KLON,6,KLEV) |
---|
83 | REAL(KIND=JPRB) ,INTENT(IN) :: PALBP(KLON,NSW) |
---|
84 | REAL(KIND=JPRB) ,INTENT(IN) :: PDSIG(KLON,KLEV) |
---|
85 | REAL(KIND=JPRB) ,INTENT(IN) :: PRAYL(KLON) |
---|
86 | REAL(KIND=JPRB) ,INTENT(IN) :: PSEC(KLON) |
---|
87 | !++MODIFCODE |
---|
88 | LOGICAL ,INTENT(IN) :: LRDUST ! flag for DUST |
---|
89 | REAL(KIND=JPRB) ,INTENT(IN) :: PPIZA_DST(KLON,KLEV) |
---|
90 | REAL(KIND=JPRB) ,INTENT(IN) :: PCGA_DST(KLON,KLEV) |
---|
91 | REAL(KIND=JPRB) ,INTENT(IN) :: PTAUREL_DST(KLON,KLEV) |
---|
92 | !--MODIFCODE |
---|
93 | REAL(KIND=JPRB) ,INTENT(OUT) :: PCGAZ(KLON,KLEV) |
---|
94 | REAL(KIND=JPRB) ,INTENT(OUT) :: PPIZAZ(KLON,KLEV) |
---|
95 | REAL(KIND=JPRB) ,INTENT(OUT) :: PRAY1(KLON,KLEV+1) |
---|
96 | REAL(KIND=JPRB) ,INTENT(OUT) :: PRAY2(KLON,KLEV+1) |
---|
97 | REAL(KIND=JPRB) ,INTENT(OUT) :: PREFZ(KLON,2,KLEV+1) |
---|
98 | REAL(KIND=JPRB) ,INTENT(OUT) :: PRJ(KLON,6,KLEV+1) |
---|
99 | REAL(KIND=JPRB) ,INTENT(OUT) :: PRK(KLON,6,KLEV+1) |
---|
100 | REAL(KIND=JPRB) ,INTENT(OUT) :: PRMU0(KLON,KLEV+1) |
---|
101 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTAUAZ(KLON,KLEV) |
---|
102 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTRA1(KLON,KLEV+1) |
---|
103 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTRA2(KLON,KLEV+1) |
---|
104 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTRCLR(KLON) |
---|
105 | ! ------------------------------------------------------------------ |
---|
106 | |
---|
107 | !* 0.1 ARGUMENTS |
---|
108 | ! --------- |
---|
109 | |
---|
110 | ! ------------------------------------------------------------------ |
---|
111 | |
---|
112 | ! ------------ |
---|
113 | |
---|
114 | REAL(KIND=JPRB) :: ZC0I(KLON,KLEV+1)& |
---|
115 | & , ZCLE0(KLON,KLEV), ZCLEAR(KLON) & |
---|
116 | & , ZR21(KLON)& |
---|
117 | & , ZR23(KLON) , ZSS0(KLON) , ZSCAT(KLON)& |
---|
118 | & , ZTR(KLON,2,KLEV+1) |
---|
119 | |
---|
120 | INTEGER(KIND=JPIM) :: IKL, JA, JAE, JAJ, JK, JKL, JKLP1, JKM1, JL, INU1 |
---|
121 | |
---|
122 | REAL(KIND=JPRB) :: ZBMU0, ZBMU1, ZCORAE, ZDEN, ZDEN1, ZFACOA,& |
---|
123 | & ZFF, ZGAP, ZGAR, ZMU1, ZMUE, ZRATIO, ZRE11, & |
---|
124 | & ZTO, ZTRAY, ZWW, ZDENB |
---|
125 | REAL(KIND=JPRB) :: ZRR,ZMU0,ZI2MU1,ZIMU1,ZIDEN,ZIDEN1 |
---|
126 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
127 | !++MODIFCODE |
---|
128 | REAL(KIND=JPRB) ::ZFACOA_NEW(KLON,KLEV) |
---|
129 | !--MODIFCODE |
---|
130 | |
---|
131 | |
---|
132 | ! ------------------------------------------------------------------ |
---|
133 | |
---|
134 | !* 1. OPTICAL PARAMETERS FOR AEROSOLS AND RAYLEIGH |
---|
135 | ! -------------------------------------------- |
---|
136 | |
---|
137 | IF (LHOOK) CALL DR_HOOK('SWCLR',0,ZHOOK_HANDLE) |
---|
138 | DO JK = 1 , KLEV+1 |
---|
139 | DO JA = 1 , 6 |
---|
140 | DO JL = KIDIA,KFDIA |
---|
141 | PRJ(JL,JA,JK) = 0.0_JPRB |
---|
142 | PRK(JL,JA,JK) = 0.0_JPRB |
---|
143 | ENDDO |
---|
144 | ENDDO |
---|
145 | ENDDO |
---|
146 | |
---|
147 | ! ------ NB: 'PAER' AEROSOLS ARE ENTERED FROM TOP TO BOTTOM |
---|
148 | |
---|
149 | DO JK = 1 , KLEV |
---|
150 | IKL=KLEV+1-JK |
---|
151 | DO JL = KIDIA,KFDIA |
---|
152 | PCGAZ(JL,JK) = 0.0_JPRB |
---|
153 | PPIZAZ(JL,JK) = 0.0_JPRB |
---|
154 | PTAUAZ(JL,JK) = 0.0_JPRB |
---|
155 | ZFACOA_NEW(JL,JK) = 0.0_JPRB |
---|
156 | ENDDO |
---|
157 | |
---|
158 | !++MODIFCODE |
---|
159 | IF(NOVLP < 5)THEN !ECMWF VERSION |
---|
160 | DO JAE=1,6 |
---|
161 | DO JL = KIDIA,KFDIA |
---|
162 | PTAUAZ(JL,JK)=PTAUAZ(JL,JK)+PAER(JL,JAE,IKL)*RTAUA(KNU,JAE) |
---|
163 | PPIZAZ(JL,JK)=PPIZAZ(JL,JK)+PAER(JL,JAE,IKL)& |
---|
164 | & * RTAUA(KNU,JAE)*RPIZA(KNU,JAE) |
---|
165 | PCGAZ(JL,JK) = PCGAZ(JL,JK) +PAER(JL,JAE,IKL)& |
---|
166 | & * RTAUA(KNU,JAE)*RPIZA(KNU,JAE)*RCGA(KNU,JAE) |
---|
167 | ENDDO |
---|
168 | ENDDO |
---|
169 | ELSE ! MESONH VERSION |
---|
170 | DO JAE=1,6 |
---|
171 | DO JL = KIDIA,KFDIA |
---|
172 | !Special optical properties for dust |
---|
173 | IF (LRDUST.AND.(JAE==3)) THEN |
---|
174 | !Ponderation of aerosol optical properties:first step |
---|
175 | !ti |
---|
176 | PTAUAZ(JL,JK)=PTAUAZ(JL,JK) + PAER(JL,JAE,IKL) * PTAUREL_DST(JL,IKL) |
---|
177 | !wi*ti |
---|
178 | PPIZAZ(JL,JK)=PPIZAZ(JL,JK) + PAER(JL,JAE,IKL) & |
---|
179 | & *PTAUREL_DST(JL,IKL)*PPIZA_DST(JL,IKL) |
---|
180 | !wi*ti*gi |
---|
181 | PCGAZ(JL,JK) = PCGAZ(JL,JK) + PAER(JL,JAE,IKL) & |
---|
182 | & *PTAUREL_DST(JL,IKL)*PPIZA_DST(JL,IKL)*PCGA_DST(JL,IKL) |
---|
183 | !wi*ti*(gi**2) |
---|
184 | ZFACOA_NEW(JL,JK)= ZFACOA_NEW(JL,JK)+PAER(JL, JAE, IKL)& |
---|
185 | & *PTAUREL_DST(JL,IKL) *PPIZA_DST(JL,IKL)*PCGA_DST(JL,IKL)*& |
---|
186 | & PCGA_DST(JL,IKL) |
---|
187 | ELSE |
---|
188 | !Ponderation of aerosol optical properties:first step |
---|
189 | !ti |
---|
190 | PTAUAZ(JL,JK)=PTAUAZ(JL,JK)+PAER(JL, JAE, IKL)*RTAUA(KNU,JAE) |
---|
191 | !wi*ti |
---|
192 | PPIZAZ(JL,JK)=PPIZAZ(JL,JK)+PAER(JL, JAE, IKL)& |
---|
193 | &* RTAUA(KNU,JAE)*RPIZA(KNU,JAE) |
---|
194 | !wi*ti*gi |
---|
195 | PCGAZ(JL,JK) = PCGAZ(JL,JK) +PAER(JL, JAE, IKL)& |
---|
196 | &* RTAUA(KNU,JAE)*RPIZA(KNU,JAE)*RCGA(KNU,JAE) |
---|
197 | !wi*ti*(gi**2) |
---|
198 | ZFACOA_NEW(JL,JK)= ZFACOA_NEW(JL,JK)+PAER(JL, JAE, IKL)& |
---|
199 | &* RTAUA(KNU,JAE)*RPIZA(KNU,JAE)*RCGA(KNU,JAE)*RCGA(KNU,JAE) |
---|
200 | ENDIF |
---|
201 | ENDDO |
---|
202 | ENDDO |
---|
203 | ENDIF |
---|
204 | !--MODIFCODE |
---|
205 | |
---|
206 | !++MODIFCODE |
---|
207 | IF (NOVLP < 5) then !ECMWF VERSION |
---|
208 | DO JL = KIDIA,KFDIA |
---|
209 | IF (KAER /= 0) THEN |
---|
210 | PCGAZ(JL,JK)=PCGAZ(JL,JK)/PPIZAZ(JL,JK) |
---|
211 | PPIZAZ(JL,JK)=PPIZAZ(JL,JK)/PTAUAZ(JL,JK) |
---|
212 | !!!! wrong ZRATIO = ZTRAY / (ZTRAY + PTAUAZ(JL,JK)) |
---|
213 | !-- |
---|
214 | ZGAR = PCGAZ(JL,JK) |
---|
215 | ZFF = ZGAR * ZGAR |
---|
216 | |
---|
217 | !-- bug-fix: ZRATIO must be defined from the transformed value of optical thickness |
---|
218 | ! MPLFH : ZTRAY N'EST PAS INITIALISE !!!!! A REVOIR (MPL) |
---|
219 | ZTRAY=0. |
---|
220 | ! print *,'>>>>>>> swclr: ZTRAY ',ZTRAY |
---|
221 | ZDENB = ZTRAY + PTAUAZ(JL,JK)*(1.0_JPRB-PPIZAZ(JL,JK)*ZFF) |
---|
222 | ZRATIO=ZTRAY/ZDENB |
---|
223 | !-- |
---|
224 | PTAUAZ(JL,JK)=ZTRAY+PTAUAZ(JL,JK)*(1.0_JPRB-PPIZAZ(JL,JK)*ZFF) |
---|
225 | PCGAZ(JL,JK) = ZGAR * (1.0_JPRB - ZRATIO) / (1.0_JPRB + ZGAR) |
---|
226 | PPIZAZ(JL,JK) =ZRATIO+(1.0_JPRB-ZRATIO)*PPIZAZ(JL,JK)*(1.0_JPRB-ZFF)& |
---|
227 | & / (1.0_JPRB - PPIZAZ(JL,JK) * ZFF) |
---|
228 | ELSE |
---|
229 | ZTRAY = PRAYL(JL) * PDSIG(JL,JK) |
---|
230 | PTAUAZ(JL,JK) = ZTRAY |
---|
231 | PCGAZ(JL,JK) = 0.0_JPRB |
---|
232 | PPIZAZ(JL,JK) = 1.0_JPRB-REPSCT |
---|
233 | ENDIF |
---|
234 | ENDDO |
---|
235 | ELSE !MESONH VERSION |
---|
236 | DO JL = KIDIA,KFDIA |
---|
237 | IF (KAER /= 0) THEN |
---|
238 | ZTRAY = PRAYL(JL) * PDSIG(JL,JK) |
---|
239 | ZRATIO =PPIZAZ(JL,JK)+ZTRAY |
---|
240 | !Ponderation G**2 |
---|
241 | ZFACOA_NEW(JL,JK)= ZFACOA_NEW(JL,JK)/ZRATIO |
---|
242 | !Ponderation w |
---|
243 | PPIZAZ(JL,JK)=ZRATIO/(PTAUAZ(JL,JK)+ZTRAY) |
---|
244 | !Ponderation g |
---|
245 | PCGAZ(JL,JK)=PCGAZ(JL,JK)/ZRATIO |
---|
246 | !Ponderation+delta-modified parameters tau |
---|
247 | PTAUAZ(JL,JK)=(ZTRAY+PTAUAZ(JL,JK))*& |
---|
248 | & (1.0_JPRB-PPIZAZ(JL,JK)*ZFACOA_NEW(JL,JK)) |
---|
249 | !delta-modified parameters w |
---|
250 | PPIZAZ(JL,JK)=PPIZAZ(JL,JK)*(1.0_JPRB-ZFACOA_NEW(JL,JK))/& |
---|
251 | & (1.0_JPRB-ZFACOA_NEW(JL,JK)*PPIZAZ(JL,JK)) |
---|
252 | !delta-modified parameters g |
---|
253 | PCGAZ(JL,JK)=PCGAZ(JL,JK)/(1.0_JPRB+PCGAZ(JL,JK)) |
---|
254 | |
---|
255 | ELSE |
---|
256 | ZTRAY = PRAYL(JL) * PDSIG(JL,JK) |
---|
257 | ZFACOA_NEW(JL,JK)= 0.0_JPRB |
---|
258 | PTAUAZ(JL,JK) = ZTRAY |
---|
259 | PCGAZ(JL,JK) = 0.0_JPRB |
---|
260 | PPIZAZ(JL,JK) = 1.0_JPRB-REPSCT |
---|
261 | ENDIF |
---|
262 | ENDDO |
---|
263 | ENDIF |
---|
264 | !--MODIFCODE |
---|
265 | |
---|
266 | ENDDO |
---|
267 | |
---|
268 | ! ------------------------------------------------------------------ |
---|
269 | |
---|
270 | !* 2. TOTAL EFFECTIVE CLOUDINESS ABOVE A GIVEN LEVEL |
---|
271 | ! ---------------------------------------------- |
---|
272 | |
---|
273 | DO JL = KIDIA,KFDIA |
---|
274 | ZR23(JL) = 0.0_JPRB |
---|
275 | ZC0I(JL,KLEV+1) = 0.0_JPRB |
---|
276 | ZCLEAR(JL) = 1.0_JPRB |
---|
277 | ZSCAT(JL) = 0.0_JPRB |
---|
278 | ENDDO |
---|
279 | |
---|
280 | JK = 1 |
---|
281 | JKL = KLEV+1 - JK |
---|
282 | JKLP1 = JKL + 1 |
---|
283 | DO JL = KIDIA,KFDIA |
---|
284 | !++MODIFCODE |
---|
285 | IF (NOVLP >= 5) THEN |
---|
286 | ZFACOA = PTAUAZ(JL,JK) |
---|
287 | ZCORAE = ZFACOA * PSEC(JL) |
---|
288 | ELSE |
---|
289 | ZFACOA = 1.0_JPRB - PPIZAZ(JL,JKL)*PCGAZ(JL,JKL)*PCGAZ(JL,JKL) |
---|
290 | ZCORAE = ZFACOA * PTAUAZ(JL,JKL) * PSEC(JL) |
---|
291 | ENDIF |
---|
292 | !--MODIFCODE |
---|
293 | ZR21(JL) = EXP(-ZCORAE ) |
---|
294 | ZSS0(JL) = 1.0_JPRB-ZR21(JL) |
---|
295 | ZCLE0(JL,JKL) = ZSS0(JL) |
---|
296 | |
---|
297 | IF (NOVLP == 1 .OR. NOVLP == 4) THEN |
---|
298 | !* maximum-random |
---|
299 | ZCLEAR(JL) = ZCLEAR(JL)& |
---|
300 | & *(1.0_JPRB-MAX(ZSS0(JL),ZSCAT(JL)))& |
---|
301 | & /(1.0_JPRB-MIN(ZSCAT(JL),1.0_JPRB-REPCLC)) |
---|
302 | ZC0I(JL,JKL) = 1.0_JPRB - ZCLEAR(JL) |
---|
303 | ZSCAT(JL) = ZSS0(JL) |
---|
304 | ELSEIF (NOVLP == 2) THEN |
---|
305 | !* maximum |
---|
306 | ZSCAT(JL) = MAX( ZSS0(JL) , ZSCAT(JL) ) |
---|
307 | ZC0I(JL,JKL) = ZSCAT(JL) |
---|
308 | !++MODIFCODE |
---|
309 | ELSEIF ((NOVLP == 3).OR.(NOVLP >= 5)) THEN |
---|
310 | !--MODIFCODE |
---|
311 | !* random |
---|
312 | ZCLEAR(JL)=ZCLEAR(JL)*(1.0_JPRB-ZSS0(JL)) |
---|
313 | ZSCAT(JL) = 1.0_JPRB - ZCLEAR(JL) |
---|
314 | ZC0I(JL,JKL) = ZSCAT(JL) |
---|
315 | ENDIF |
---|
316 | ENDDO |
---|
317 | |
---|
318 | DO JK = 2 , KLEV |
---|
319 | JKL = KLEV+1 - JK |
---|
320 | JKLP1 = JKL + 1 |
---|
321 | DO JL = KIDIA,KFDIA |
---|
322 | !++MODIFCODE |
---|
323 | IF (NOVLP >= 5) THEN |
---|
324 | ZFACOA = PTAUAZ(JL,JK) |
---|
325 | ZCORAE = ZFACOA * PSEC(JL) |
---|
326 | ELSE |
---|
327 | ZFACOA = 1.0_JPRB - PPIZAZ(JL,JKL)*PCGAZ(JL,JKL)*PCGAZ(JL,JKL) |
---|
328 | ZCORAE = ZFACOA * PTAUAZ(JL,JKL) * PSEC(JL) |
---|
329 | ENDIF |
---|
330 | !--MODIFCODE |
---|
331 | ZR21(JL) = EXP(-ZCORAE ) |
---|
332 | ZSS0(JL) = 1.0_JPRB-ZR21(JL) |
---|
333 | ZCLE0(JL,JKL) = ZSS0(JL) |
---|
334 | |
---|
335 | IF (NOVLP == 1 .OR. NOVLP == 4) THEN |
---|
336 | !* maximum-random |
---|
337 | ZCLEAR(JL) = ZCLEAR(JL)& |
---|
338 | & *(1.0_JPRB-MAX(ZSS0(JL),ZSCAT(JL)))& |
---|
339 | & /(1.0_JPRB-MIN(ZSCAT(JL),1.0_JPRB-REPCLC)) |
---|
340 | ZC0I(JL,JKL) = 1.0_JPRB - ZCLEAR(JL) |
---|
341 | ZSCAT(JL) = ZSS0(JL) |
---|
342 | ELSEIF (NOVLP == 2) THEN |
---|
343 | !* maximum |
---|
344 | ZSCAT(JL) = MAX( ZSS0(JL) , ZSCAT(JL) ) |
---|
345 | ZC0I(JL,JKL) = ZSCAT(JL) |
---|
346 | !++MODIFCODE |
---|
347 | ELSEIF ((NOVLP == 3).OR.(NOVLP >= 5)) THEN |
---|
348 | !--MODIFCODE |
---|
349 | !* random |
---|
350 | ZCLEAR(JL)=ZCLEAR(JL)*(1.0_JPRB-ZSS0(JL)) |
---|
351 | ZSCAT(JL) = 1.0_JPRB - ZCLEAR(JL) |
---|
352 | ZC0I(JL,JKL) = ZSCAT(JL) |
---|
353 | ENDIF |
---|
354 | ENDDO |
---|
355 | ENDDO |
---|
356 | |
---|
357 | ! ------------------------------------------------------------------ |
---|
358 | |
---|
359 | !* 3. REFLECTIVITY/TRANSMISSIVITY FOR PURE SCATTERING |
---|
360 | ! ----------------------------------------------- |
---|
361 | |
---|
362 | DO JL = KIDIA,KFDIA |
---|
363 | PRAY1(JL,KLEV+1) = 0.0_JPRB |
---|
364 | PRAY2(JL,KLEV+1) = 0.0_JPRB |
---|
365 | PREFZ(JL,2,1) = PALBP(JL,KNU) |
---|
366 | PREFZ(JL,1,1) = PALBP(JL,KNU) |
---|
367 | PTRA1(JL,KLEV+1) = 1.0_JPRB |
---|
368 | PTRA2(JL,KLEV+1) = 1.0_JPRB |
---|
369 | ENDDO |
---|
370 | |
---|
371 | DO JK = 2 , KLEV+1 |
---|
372 | JKM1 = JK-1 |
---|
373 | DO JL = KIDIA,KFDIA |
---|
374 | |
---|
375 | ! ------------------------------------------------------------------ |
---|
376 | |
---|
377 | !* 3.1 EQUIVALENT ZENITH ANGLE |
---|
378 | ! ----------------------- |
---|
379 | |
---|
380 | ZMUE = (1.0_JPRB-ZC0I(JL,JK)) * PSEC(JL)+ ZC0I(JL,JK) * 1.66_JPRB |
---|
381 | PRMU0(JL,JK) = 1.0_JPRB/ZMUE |
---|
382 | ZMU0=PRMU0(JL,JK) |
---|
383 | |
---|
384 | ! ------------------------------------------------------------------ |
---|
385 | |
---|
386 | !* 3.2 REFLECT./TRANSMISSIVITY DUE TO RAYLEIGH AND AEROSOLS |
---|
387 | ! ---------------------------------------------------- |
---|
388 | |
---|
389 | ZGAP = PCGAZ(JL,JKM1) |
---|
390 | ZBMU0 = 0.5_JPRB - 0.75_JPRB * ZGAP *ZMU0 |
---|
391 | ZWW = PPIZAZ(JL,JKM1) |
---|
392 | ZTO = PTAUAZ(JL,JKM1) |
---|
393 | ZDEN = 1.0_JPRB + (1.0_JPRB - ZWW + ZBMU0 * ZWW) * ZTO * ZMUE & |
---|
394 | & + (1-ZWW) * (1.0_JPRB - ZWW +2.0_JPRB*ZBMU0*ZWW)*ZTO*ZTO*ZMUE*ZMUE |
---|
395 | ZIDEN=1.0_JPRB / ZDEN |
---|
396 | PRAY1(JL,JKM1) = ZBMU0 * ZWW * ZTO * ZMUE * ZIDEN |
---|
397 | PTRA1(JL,JKM1) = ZIDEN |
---|
398 | |
---|
399 | ZMU1 = 0.5_JPRB |
---|
400 | ZIMU1=2.0_JPRB |
---|
401 | ZI2MU1=4.0_JPRB |
---|
402 | ZBMU1 = 0.5_JPRB - 0.75_JPRB * ZGAP * ZMU1 |
---|
403 | ZDEN1= 1.0_JPRB + (1.0_JPRB - ZWW + ZBMU1 * ZWW) * ZTO * ZIMU1 & |
---|
404 | & + (1-ZWW) * (1.0_JPRB - ZWW +2.0_JPRB*ZBMU1*ZWW)*ZTO*ZTO*ZI2MU1 |
---|
405 | ZIDEN1=1.0_JPRB / ZDEN1 |
---|
406 | PRAY2(JL,JKM1) = ZBMU1 * ZWW * ZTO * ZIMU1 *ZIDEN1 |
---|
407 | PTRA2(JL,JKM1) = ZIDEN1 |
---|
408 | |
---|
409 | ZRR=1.0_JPRB/(1.0_JPRB-PRAY2(JL,JKM1)*PREFZ(JL,1,JKM1)) |
---|
410 | PREFZ(JL,1,JK) = PRAY1(JL,JKM1)& |
---|
411 | & + PREFZ(JL,1,JKM1) * PTRA1(JL,JKM1)& |
---|
412 | & * PTRA2(JL,JKM1)& |
---|
413 | & *ZRR |
---|
414 | |
---|
415 | ZTR(JL,1,JKM1) = PTRA1(JL,JKM1)& |
---|
416 | & *ZRR |
---|
417 | |
---|
418 | PREFZ(JL,2,JK) = PRAY1(JL,JKM1)& |
---|
419 | & + PREFZ(JL,2,JKM1) * PTRA1(JL,JKM1)& |
---|
420 | & * PTRA2(JL,JKM1) |
---|
421 | |
---|
422 | ZTR(JL,2,JKM1) = PTRA1(JL,JKM1) |
---|
423 | |
---|
424 | ENDDO |
---|
425 | ENDDO |
---|
426 | DO JL = KIDIA,KFDIA |
---|
427 | ZMUE = (1.0_JPRB-ZC0I(JL,1))*PSEC(JL)+ZC0I(JL,1)*1.66_JPRB |
---|
428 | PRMU0(JL,1)=1.0_JPRB/ZMUE |
---|
429 | PTRCLR(JL)=1.0_JPRB-ZC0I(JL,1) |
---|
430 | ENDDO |
---|
431 | |
---|
432 | ! ------------------------------------------------------------------ |
---|
433 | |
---|
434 | !* 3.5 REFLECT./TRANSMISSIVITY BETWEEN SURFACE AND LEVEL |
---|
435 | ! ------------------------------------------------- |
---|
436 | |
---|
437 | IF (NSW <= 4) THEN |
---|
438 | INU1=1 |
---|
439 | ELSEIF (NSW == 6) THEN |
---|
440 | INU1=3 |
---|
441 | ENDIF |
---|
442 | |
---|
443 | IF (KNU <= INU1) THEN |
---|
444 | JAJ = 2 |
---|
445 | DO JL = KIDIA,KFDIA |
---|
446 | PRJ(JL,JAJ,KLEV+1) = 1.0_JPRB |
---|
447 | PRK(JL,JAJ,KLEV+1) = PREFZ(JL, 1,KLEV+1) |
---|
448 | ENDDO |
---|
449 | |
---|
450 | DO JK = 1 , KLEV |
---|
451 | JKL = KLEV+1 - JK |
---|
452 | JKLP1 = JKL + 1 |
---|
453 | DO JL = KIDIA,KFDIA |
---|
454 | ZRE11= PRJ(JL,JAJ,JKLP1) * ZTR(JL, 1,JKL) |
---|
455 | PRJ(JL,JAJ,JKL) = ZRE11 |
---|
456 | PRK(JL,JAJ,JKL) = ZRE11 * PREFZ(JL, 1,JKL) |
---|
457 | ENDDO |
---|
458 | ENDDO |
---|
459 | |
---|
460 | ELSE |
---|
461 | |
---|
462 | DO JAJ = 1 , 2 |
---|
463 | DO JL = KIDIA,KFDIA |
---|
464 | PRJ(JL,JAJ,KLEV+1) = 1.0_JPRB |
---|
465 | PRK(JL,JAJ,KLEV+1) = PREFZ(JL,JAJ,KLEV+1) |
---|
466 | ENDDO |
---|
467 | |
---|
468 | DO JK = 1 , KLEV |
---|
469 | JKL = KLEV+1 - JK |
---|
470 | JKLP1 = JKL + 1 |
---|
471 | DO JL = KIDIA,KFDIA |
---|
472 | ZRE11= PRJ(JL,JAJ,JKLP1) * ZTR(JL,JAJ,JKL) |
---|
473 | PRJ(JL,JAJ,JKL) = ZRE11 |
---|
474 | PRK(JL,JAJ,JKL) = ZRE11 * PREFZ(JL,JAJ,JKL) |
---|
475 | ENDDO |
---|
476 | ENDDO |
---|
477 | ENDDO |
---|
478 | |
---|
479 | ENDIF |
---|
480 | |
---|
481 | ! ------------------------------------------------------------------ |
---|
482 | |
---|
483 | IF (LHOOK) CALL DR_HOOK('SWCLR',1,ZHOOK_HANDLE) |
---|
484 | END SUBROUTINE SWCLR |
---|