28 SUBROUTINE otlft(PBND,TBND,QBND,SLINDX)
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
elemental real function, public fpvsnew(t)
calcape() computes CAPE/CINS and other storm related variables.