28 SUBROUTINE otlft(PBND,TBND,QBND,SLINDX)
32 use vrbls2d,
only: t500
33 use lookup_mod,
only: thl, rdth, jtb, qs0, sqs, rdq, itb, ptbl, &
34 pl, rdp, the0, sthe, rdthe, ttbl
35 use ctlblk_mod,
only: jsta, jend, im, spval, ista, iend
36 use params_mod,
only: d00, h10e5, capa, elocp, eps, oneps
42 real,
PARAMETER :: D8202=.820231e0 , h5e4=5.e4 , p500=50000.
46 real,
dimension(ista:iend,jsta:jend),
intent(in) :: PBND,TBND,QBND
47 real,
dimension(ista:iend,jsta:jend),
intent(out) :: SLINDX
48 REAL :: TVP, ESATP, QSATP
49 REAL :: BQS00, SQS00, BQS10, SQS10, P00, P10, P01, P11, BQ, SQ, TQ
50 REAL :: BTHE00, STHE00, BTHE10, STHE10, BTH, STH, TTH
51 REAL :: T00, T10, T01, T11, TBT, QBT, APEBT, TTHBT, PPQ, PP
52 REAL :: TQQ, QQ, TPSP, APESP, TTHES, TP, PARTMP
54 INTEGER :: I, J, ITTBK, IQ, IT, IPTBK, ITH, IP
55 INTEGER :: ITTB, IQTB, IPTB, ITHTB
76 if( tbt < spval )
then
78 apebt = (h10e5/pbnd(i,j))**capa
108 bq=(bqs10-bqs00)*tqq+bqs00
109 sq=(sqs10-sqs00)*tqq+sqs00
136 tpsp = p00+(p10-p00)*ppq+(p01-p00)*tqq &
137 +(p00-p10-p01+p11)*ppq*tqq
138 IF(tpsp <= d00) tpsp = h10e5
139 apesp = (h10e5/tpsp)**capa
140 tthes = tthbt*exp(elocp*qbt*apesp/tthbt)
172 bth=(bthe10-bthe00)*qq+bthe00
173 sth=(sthe10-sthe00)*qq+sthe00
174 tth=(tthes-bth)/sth*rdthe
201 partmp=(t00+(t10-t00)*pp+(t01-t00)*qq &
202 +(t00-t10-t01+t11)*pp*qq)
204 partmp=tbt*apebt*d8202
215 qsatp=eps*esatp/(p500-esatp*oneps)
216 tvp=partmp*(1+0.608*qsatp)
217 slindx(i,j)=t500(i,j)-tvp
calcape() computes CAPE/CINS and other storm related variables.
elemental real function, public fpvsnew(t)