1 |
|
|
SUBROUTINE SRTM_TAUMOL27 & |
2 |
|
|
& ( KLEV,& |
3 |
|
|
& P_FAC00 , P_FAC01 , P_FAC10 , P_FAC11,& |
4 |
|
|
& K_JP , K_JT , K_JT1 , P_ONEMINUS,& |
5 |
|
|
& P_COLMOL , P_COLO3,& |
6 |
|
|
& K_LAYTROP,& |
7 |
|
|
& P_SFLUXZEN, P_TAUG , P_TAUR & |
8 |
|
|
& ) |
9 |
|
|
|
10 |
|
|
! Written by Eli J. Mlawer, Atmospheric & Environmental Research. |
11 |
|
|
|
12 |
|
|
! BAND 27: 29000-38000 cm-1 (low - O3; high - O3) |
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, NG27 |
25 |
|
|
USE YOESRTA27, ONLY : ABSA, ABSB & |
26 |
|
|
& , SFLUXREFC, RAYLC & |
27 |
|
|
& , LAYREFFR, SCALEKUR |
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_COLMOL(JPLAY) |
43 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_COLO3(JPLAY) |
44 |
|
|
INTEGER(KIND=JPIM),INTENT(IN) :: K_LAYTROP |
45 |
|
|
|
46 |
|
|
REAL(KIND=JPRB) ,INTENT(OUT) :: P_SFLUXZEN(JPG) |
47 |
|
|
REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUG(JPLAY,JPG) |
48 |
|
|
REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAUR(JPLAY,JPG) |
49 |
|
|
!- from INTFAC |
50 |
|
|
!- from INTIND |
51 |
|
|
!- from PRECISE |
52 |
|
|
!- from PROFDATA |
53 |
|
|
!- from SELF |
54 |
|
|
INTEGER(KIND=JPIM) :: IG, IND0, IND1, I_LAY, I_LAYSOLFR, I_NLAYERS |
55 |
|
|
|
56 |
|
|
REAL(KIND=JPRB) :: & |
57 |
|
|
& Z_TAURAY |
58 |
|
|
REAL(KIND=JPRB) :: ZHOOK_HANDLE |
59 |
|
|
|
60 |
|
|
IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL27',0,ZHOOK_HANDLE) |
61 |
|
|
I_NLAYERS = KLEV |
62 |
|
|
|
63 |
|
|
! Compute the optical depth by interpolating in ln(pressure), |
64 |
|
|
! temperature, and appropriate species. Below LAYTROP, the water |
65 |
|
|
! vapor self-continuum is interpolated (in temperature) separately. |
66 |
|
|
DO I_LAY = 1, K_LAYTROP |
67 |
|
|
IND0 = ((K_JP(I_LAY)-1)*5+(K_JT(I_LAY)-1))*NSPA(27) + 1 |
68 |
|
|
IND1 = (K_JP(I_LAY)*5+(K_JT1(I_LAY)-1))*NSPA(27) + 1 |
69 |
|
|
|
70 |
|
|
! DO IG = 1, NG(27) |
71 |
|
|
DO IG = 1 , NG27 |
72 |
|
|
Z_TAURAY = P_COLMOL(I_LAY) * RAYLC(IG) |
73 |
|
|
P_TAUG(I_LAY,IG) = P_COLO3(I_LAY) * & |
74 |
|
|
& (P_FAC00(I_LAY) * ABSA(IND0,IG) + & |
75 |
|
|
& P_FAC10(I_LAY) * ABSA(IND0+1,IG) + & |
76 |
|
|
& P_FAC01(I_LAY) * ABSA(IND1,IG) + & |
77 |
|
|
& P_FAC11(I_LAY) * ABSA(IND1+1,IG)) |
78 |
|
|
! & + TAURAY |
79 |
|
|
! SSA(LAY,IG) = TAURAY/TAUG(LAY,IG) |
80 |
|
|
P_TAUR(I_LAY,IG) = Z_TAURAY |
81 |
|
|
ENDDO |
82 |
|
|
ENDDO |
83 |
|
|
|
84 |
|
|
I_LAYSOLFR = I_NLAYERS |
85 |
|
|
|
86 |
|
|
DO I_LAY = K_LAYTROP+1, I_NLAYERS |
87 |
|
|
IF (K_JP(I_LAY-1) < LAYREFFR .AND. K_JP(I_LAY) >= LAYREFFR) & |
88 |
|
|
& I_LAYSOLFR = I_LAY |
89 |
|
|
IND0 = ((K_JP(I_LAY)-13)*5+(K_JT(I_LAY)-1))*NSPB(27) + 1 |
90 |
|
|
IND1 = ((K_JP(I_LAY)-12)*5+(K_JT1(I_LAY)-1))*NSPB(27) + 1 |
91 |
|
|
|
92 |
|
|
! DO IG = 1, NG(27) |
93 |
|
|
DO IG = 1 , NG27 |
94 |
|
|
Z_TAURAY = P_COLMOL(I_LAY) * RAYLC(IG) |
95 |
|
|
P_TAUG(I_LAY,IG) = P_COLO3(I_LAY) * & |
96 |
|
|
& (P_FAC00(I_LAY) * ABSB(IND0,IG) + & |
97 |
|
|
& P_FAC10(I_LAY) * ABSB(IND0+1,IG) + & |
98 |
|
|
& P_FAC01(I_LAY) * ABSB(IND1,IG) + & |
99 |
|
|
& P_FAC11(I_LAY) * ABSB(IND1+1,IG)) |
100 |
|
|
! & + TAURAY |
101 |
|
|
! SSA(LAY,IG) = TAURAY/TAUG(LAY,IG) |
102 |
|
|
IF (I_LAY == I_LAYSOLFR) P_SFLUXZEN(IG) = SCALEKUR * SFLUXREFC(IG) |
103 |
|
|
P_TAUR(I_LAY,IG) = Z_TAURAY |
104 |
|
|
ENDDO |
105 |
|
|
ENDDO |
106 |
|
|
|
107 |
|
|
!----------------------------------------------------------------------- |
108 |
|
|
IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL27',1,ZHOOK_HANDLE) |
109 |
|
|
END SUBROUTINE SRTM_TAUMOL27 |
110 |
|
|
|