2 FUNCTION FBINT(XX,YY,LIST,III,JJJ,IBINT)
4 C-----BILINEAR INTERPOLATION AMONG FOUR GRID VALUES
6 REAL LIST(III,JJJ),STL(4,4)
16 IF (ABS(X).GT.0.0001.OR.ABS(Y).GT.0.0001) GOTO 10
25 IF (KK.LT.1.OR.KK.GT.IB) GOTO 20
26 IF (LL.GT.JB.OR.LL.LT.1) GOTO 20
27 STL(K,L) = LIST(KK,LL)
29 IF (STL(K,L).EQ.0.0) STL(K,L) = 1.E-25
32 C-----FIND INDEX OF CLOSEST POINT TO XX,YY.
34 A = FONED(X,STL(1,1),STL(2,1),STL(3,1),STL(4,1))
35 B = FONED(X,STL(1,2),STL(2,2),STL(3,2),STL(4,2))
36 C = FONED(X,STL(1,3),STL(2,3),STL(3,3),STL(4,3))
37 D = FONED(X,STL(1,4),STL(2,4),STL(3,4),STL(4,4))
38 FBINT = FONED(Y,A,B,C,D)
41 E = FONED(Y,STL(1,1),STL(1,2),STL(1,3),STL(1,4))
42 F = FONED(Y,STL(2,1),STL(2,2),STL(2,3),STL(2,4))
43 G = FONED(Y,STL(3,1),STL(3,2),STL(3,3),STL(3,4))
44 H = FONED(Y,STL(4,1),STL(4,2),STL(4,3),STL(4,4))
45 FBINT = (FBINT+FONED(X,E,F,G,H))/2.