24 REAL varbl1(nsites),varbl2(nsites),varbl3(nsites)
25 REAL xx(nsites),yy(nsites),atemp(nxgrd,nygrd)
27 LOGICAL bysond(nxgrd,nygrd)
41 IF (numtmp .LE. 0 .OR. nlvl .LE. 3)
THEN
42 WRITE(*,*)
' ONLY ',nlvl-1,
' FLOW SURFACES'
43 WRITE(*,*)
' ONLY ',numtmp,
' T-SONDES'
44 WRITE(*,*)
'CANNOT WORK '
54 IF (ix.EQ.nint(xtmp(it)) .AND.
55 $ iy.EQ.nint(ytmp(it)))
THEN
76 varbl2(it)=ptlaps(it,iz)
78 CALL rinvmold(trpval,x0,y0,xx,yy,numtmp,varbl2)
79 dthdzl(ix,iy,iz)=trpval
104 varbl3(jkit)=altsig(it,iz)
111 IF (num3use.EQ.0)
THEN
113 IF (mnx .GT. 0 .AND. mnx .LE. nxgrd .AND.
114 $ mny.GT.0 .AND. mny .LE. nygrd)
THEN
115 IF (altim(is).GT.-9998.9)
THEN
119 varbl3(num3use)=altim(is)
129 IF (num3use.GT.0)
THEN
130 CALL rinvmold(trpval,x0,y0,xx,yy,num3use,varbl3)
131 setalt(ix,iy,iz)=trpval
132 prmb(ix,iy,iz)=
cvt2p(setalt(ix,iy,iz),
133 $ sfcht(ix,iy)+rhs(ix,iy,iz))
154 varbl1(it)=ptsigl(it,iz)
158 CALL rinvmold(trpval,x0,y0,xx,yy,num1use,varbl1)
159 tmpkel(ix,iy,iz)=trpval
167 CALL vrsmoo (altim,atemp,numnws)
170 setalt(ix,iy,1)=atemp(ix,iy)
171 prmb(ix,iy,1)=
cvt2p(setalt(ix,iy,1),sfcht(ix,iy)+z10)
174 CALL vrsmoo (tempc,atemp,numnws)
177 tmpkel(ix,iy,1)=
tpot(prmb(ix,iy,1),atemp(ix,iy))
186 dthdzl(ix,iy,1)=dthdzl(ix,iy,levbot(ix,iy))
187 DO 390 iz=2,levbot(ix,iy)
191 IF (iz.LT.levbot(ix,iy))
THEN
202 setalt(ix,iy,1)=setalt(ix,iy,iz)
203 prmb(ix,iy,1)=
cvt2p(setalt(ix,iy,iz),
205 tmpkel(ix,iy,1)=tmpkel(ix,iy,iz)-
206 $ (rhs(ix,iy,iz)-z10)*dthdzl(ix,iy,iz)
subroutine rinvmold(TRPVAL, X0, Y0, XX, YY, NOBS, VARBL)
real function cvt2p(ALTIM, ELEV)
subroutine vrsmoo(VAL, VALTRP, NUMBER)
real function tpot(PP, TT)