17 REAL RYZVAR(nsites),XVAR(nsites),YVAR(nsites)
28 IF (numtmp .GT. 1)
THEN
36 IF (nthts(it) .GT. 0 .AND.
37 $ dzmax(it,l).GT.-9998.)
THEN
38 zratio=
sloper(here,sfclow,zrise)
42 zratio=
sloper(here,sfclow,zrise)
43 ryzvar(nryz)= zratio*dzmax(it,l)
47 CALL rinvmod(rhere,xx,yy,xvar,yvar,nryz,ryzvar)
49 $ rhere+avthk*sigma(l)+sfclow-here
58 $ (avthk*sigma(l-1)+sfclow-here)
60 $ rhere+avthk*sigma(l)+sfclow-here
63 $ avthk*sigma(l)-0.25*(here-sfclow)
66 ELSE IF (numtmp .LT.1)
THEN
70 WRITE (*,*)
'BE WARY -- NO SOUNDING'
71 rhs(ix,iy,l)= avthk*sigma(l)-0.25*(here-sfclow)
72 ELSE IF (numtmp.EQ.1)
THEN
73 IF (dzmax(1,l) .GT. -9998.)
THEN
77 rhere=
sloper(here,sfclow,zrise)*dzmax(1,l)
78 rhs(ix,iy,l)=rhere+avthk*sigma(l)+sfclow-here
80 IF (l.GT.1 .AND. dzmax(1,l-1).GT.-9998.)
THEN
85 dzmax(1,l)=dzmax(1,l-1)
86 rhere=
sloper(here,sfclow,zrise)*dzmax(1,l)
87 rhs(ix,iy,l)=rhere+avthk*sigma(l)+sfclow-here
93 rhs(ix,iy,l)=avthk*sigma(l)-
102 IF (rhs(ix,iy,l).GE.z0 .AND.
103 $ rhs(ix,iy,l) .LT. 20.0) rhs(ix,iy,l)=20.0
107 IF (rhs(ix,iy,l).GT.z0)
GO TO 200
subroutine rinvmod(TRPVAL, X0, Y0, XX, YY, NOBS, VARBL)
real function sloper(HERE, SFCMIN, HIRISE)