[2089] | 1 | !****************************************************************************** |
---|
| 2 | SUBROUTINE RRTM_TAUMOL11 (KLEV,TAU,& |
---|
| 3 | &TAUAERL,FAC00,FAC01,FAC10,FAC11,JP,JT,JT1,& |
---|
| 4 | &COLH2O,LAYTROP,SELFFAC,SELFFRAC,INDSELF,PFRAC) |
---|
| 5 | |
---|
| 6 | ! BAND 11: 1480-1800 cm-1 (low - H2O; high - H2O) |
---|
| 7 | |
---|
| 8 | ! Modifications |
---|
| 9 | ! |
---|
| 10 | ! D Salmond 2000-05-15 speed-up |
---|
| 11 | ! JJMorcrette 2000-05-17 speed-up |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | #include "tsmbkind.h" |
---|
| 15 | |
---|
| 16 | USE PARRRTM , ONLY : JPLAY ,JPBAND ,JPGPT ,JPXSEC , NGS10 |
---|
| 17 | USE YOERRTWN , ONLY : NG ,NSPA ,NSPB |
---|
| 18 | USE YOERRTA11, ONLY : NG11 ,ABSA ,ABSB ,FRACREFA, FRACREFB,& |
---|
| 19 | &KA , KB ,SELFREF |
---|
| 20 | |
---|
| 21 | ! Input |
---|
| 22 | !#include "yoeratm.h" |
---|
| 23 | |
---|
| 24 | ! REAL TAUAER(JPLAY) |
---|
| 25 | |
---|
| 26 | IMPLICIT NONE |
---|
| 27 | |
---|
| 28 | ! Output |
---|
| 29 | REAL_B :: TAU (JPGPT,JPLAY) |
---|
| 30 | |
---|
| 31 | ! DUMMY INTEGER SCALARS |
---|
| 32 | INTEGER_M :: KLEV |
---|
| 33 | |
---|
| 34 | !- from AER |
---|
| 35 | REAL_B :: TAUAERL(JPLAY,JPBAND) |
---|
| 36 | |
---|
| 37 | !- from INTFAC |
---|
| 38 | REAL_B :: FAC00(JPLAY) |
---|
| 39 | REAL_B :: FAC01(JPLAY) |
---|
| 40 | REAL_B :: FAC10(JPLAY) |
---|
| 41 | REAL_B :: FAC11(JPLAY) |
---|
| 42 | |
---|
| 43 | !- from INTIND |
---|
| 44 | INTEGER_M :: JP(JPLAY) |
---|
| 45 | INTEGER_M :: JT(JPLAY) |
---|
| 46 | INTEGER_M :: JT1(JPLAY) |
---|
| 47 | |
---|
| 48 | !- from PROFDATA |
---|
| 49 | REAL_B :: COLH2O(JPLAY) |
---|
| 50 | INTEGER_M :: LAYTROP |
---|
| 51 | |
---|
| 52 | !- from SELF |
---|
| 53 | REAL_B :: SELFFAC(JPLAY) |
---|
| 54 | REAL_B :: SELFFRAC(JPLAY) |
---|
| 55 | INTEGER_M :: INDSELF(JPLAY) |
---|
| 56 | |
---|
| 57 | !- from SP |
---|
| 58 | REAL_B :: PFRAC(JPGPT,JPLAY) |
---|
| 59 | |
---|
| 60 | INTEGER_M :: IND0(JPLAY),IND1(JPLAY),INDS(JPLAY) |
---|
| 61 | |
---|
| 62 | ! LOCAL INTEGER SCALARS |
---|
| 63 | INTEGER_M :: IG, LAY |
---|
| 64 | |
---|
| 65 | ! EQUIVALENCE (TAUAERL(1,11),TAUAER) |
---|
| 66 | |
---|
| 67 | ! Compute the optical depth by interpolating in ln(pressure) and |
---|
| 68 | ! temperature. Below LAYTROP, the water vapor self-continuum |
---|
| 69 | ! is interpolated (in temperature) separately. |
---|
| 70 | |
---|
| 71 | DO LAY = 1, LAYTROP |
---|
| 72 | IND0(LAY) = ((JP(LAY)-1)*5+(JT(LAY)-1))*NSPA(11) + 1 |
---|
| 73 | IND1(LAY) = (JP(LAY)*5+(JT1(LAY)-1))*NSPA(11) + 1 |
---|
| 74 | INDS(LAY) = INDSELF(LAY) |
---|
| 75 | ENDDO |
---|
| 76 | |
---|
| 77 | !-- DS_000515 |
---|
| 78 | DO IG = 1, NG11 |
---|
| 79 | DO LAY = 1, LAYTROP |
---|
| 80 | !-- DS_000515 |
---|
| 81 | TAU (NGS10+IG,LAY) = COLH2O(LAY) *& |
---|
| 82 | &(FAC00(LAY) * ABSA(IND0(LAY) ,IG) +& |
---|
| 83 | & FAC10(LAY) * ABSA(IND0(LAY)+1,IG) +& |
---|
| 84 | & FAC01(LAY) * ABSA(IND1(LAY) ,IG) +& |
---|
| 85 | & FAC11(LAY) * ABSA(IND1(LAY)+1,IG) +& |
---|
| 86 | &SELFFAC(LAY) * (SELFREF(INDS(LAY),IG) + & |
---|
| 87 | &SELFFRAC(LAY) *& |
---|
| 88 | &(SELFREF(INDS(LAY)+1,IG) - SELFREF(INDS(LAY),IG))))& |
---|
| 89 | &+ TAUAERL(LAY,11) |
---|
| 90 | PFRAC(NGS10+IG,LAY) = FRACREFA(IG) |
---|
| 91 | ENDDO |
---|
| 92 | ENDDO |
---|
| 93 | |
---|
| 94 | DO LAY = LAYTROP+1, KLEV |
---|
| 95 | IND0(LAY) = ((JP(LAY)-13)*5+(JT(LAY)-1))*NSPB(11) + 1 |
---|
| 96 | IND1(LAY) = ((JP(LAY)-12)*5+(JT1(LAY)-1))*NSPB(11) + 1 |
---|
| 97 | ENDDO |
---|
| 98 | |
---|
| 99 | !-- JJM_000517 |
---|
| 100 | DO IG = 1, NG11 |
---|
| 101 | DO LAY = LAYTROP+1, KLEV |
---|
| 102 | !-- JJM_000517 |
---|
| 103 | TAU (NGS10+IG,LAY) = COLH2O(LAY) *& |
---|
| 104 | &(FAC00(LAY) * ABSB(IND0(LAY) ,IG) +& |
---|
| 105 | & FAC10(LAY) * ABSB(IND0(LAY)+1,IG) +& |
---|
| 106 | & FAC01(LAY) * ABSB(IND1(LAY) ,IG) +& |
---|
| 107 | & FAC11(LAY) * ABSB(IND1(LAY)+1,IG)) & |
---|
| 108 | &+ TAUAERL(LAY,11) |
---|
| 109 | PFRAC(NGS10+IG,LAY) = FRACREFB(IG) |
---|
| 110 | ENDDO |
---|
| 111 | ENDDO |
---|
| 112 | |
---|
| 113 | RETURN |
---|
| 114 | END SUBROUTINE RRTM_TAUMOL11 |
---|