35 REAL R2(4225), WLON(4225)
36 REAL XLAT(4225), XI(65,65), XJ(65,65)
37 REAL XII(4225), XJJ(4225), ANGLE(4225)
38 REAL ALOLA(145,37), APOLA(4225), ERAS(4225,4)
39 REAL W1(4225), W2(4225)
40 REAL XDELI(4225), XDELJ(4225)
41 REAL XI2TM(4225), XJ2TM(4225)
43 INTEGER IV(4225), JV(4225), JY(4225,4)
44 INTEGER IM1(4225), IP1(4225), IP2(4225)
50 equivalence(xi(1,1),xii(1)),(xj(1,1),xjj(1))
52 DATA degprd/57.2957795/
58 IF (interp.EQ.1) lin = .true.
60 IF (iswt.EQ.1)
GO TO 900
65 gi2 = (1.86603 * earthr) / xmesh
78 r2(kk) = xjj(kk) * xjj(kk) + xii(kk) * xii(kk)
80 & asin((gi2 - r2(kk)) / (gi2 + r2(kk)))
85 angle(kk) = degprd * atan2(xjj(kk),xii(kk))
89 IF (angle(kk).LT.0.0) angle(kk) = angle(kk) + 360.0
93 wlon(kk) = 270.0 + orient - angle(kk)
97 IF (wlon(kk).LT.0.0) wlon(kk) = wlon(kk) + 360.0
101 IF (wlon(kk).GE.360.0) wlon(kk) = wlon(kk) - 360.0
108 w1(kk) = (360.0 - wlon(kk)) / deg + 1.0
109 w2(kk) = xlat(kk) / deg + 1.0
120 IF (interp.EQ.intrpo)
GO TO 2100
127 xdeli(k) = w1(k) - iv(k)
128 xdelj(k) = w2(k) - jv(k)
141 xi2tm(k) = xdeli(k) * (xdeli(k) - 1.0) * .25
142 xj2tm(k) = xdelj(k) * (xdelj(k) - 1.0) * .25
146 IF (iv(kk).EQ.1)
THEN
149 ELSE IF (iv(kk).EQ.144)
THEN
160 IF (jv(kk).LT.2.OR.jv(kk).GT.35) xj2tm(kk) = 0.0
164 IF (ip2(kk).LT.1) ip2(kk) = 1
165 IF (im1(kk).LT.1) im1(kk) = 1
166 IF (ip2(kk).GT.145) ip2(kk) = 145
167 IF (im1(kk).GT.145) im1(kk) = 145
172 IF (iv(kk).LT.1) iv(kk) = 1
173 IF (ip1(kk).LT.1) ip1(kk) = 1
174 IF (iv(kk).GT.145) iv(kk) = 145
175 IF (ip1(kk).GT.145) ip1(kk) = 145
181 IF (jy(kk,2).LT.1) jy(kk,2) = 1
182 IF (jy(kk,2).GT.37) jy(kk,2) = 37
183 IF (jy(kk,3).LT.1) jy(kk,3) = 1
184 IF (jy(kk,3).GT.37) jy(kk,3) = 37
189 IF (jy(kk,1).LT.1) jy(kk,1) = 1
190 IF (jy(kk,1).GT.37) jy(kk,1) = 37
191 IF (jy(kk,4).LT.1) jy(kk,4) = 1
192 IF (jy(kk,4).GT.37) jy(kk,4) = 37
202 eras(kk,2) = (alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
203 & * xdeli(kk) + alola(iv(kk),jy(kk,2))
204 eras(kk,3) = (alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
205 & * xdeli(kk) + alola(iv(kk),jy(kk,3))
209 apola(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
218 eras(kk,1)=(alola(ip1(kk),jy(kk,1))-alola(iv(kk),jy(kk,1)))
219 & * xdeli(kk) + alola(iv(kk),jy(kk,1)) +
220 & ( alola(im1(kk),jy(kk,1)) - alola(iv(kk),jy(kk,1))
221 & - alola(ip1(kk),jy(kk,1))+alola(ip2(kk),jy(kk,1)))
223 eras(kk,2)=(alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
224 & * xdeli(kk) + alola(iv(kk),jy(kk,2)) +
225 & ( alola(im1(kk),jy(kk,2)) - alola(iv(kk),jy(kk,2))
226 & - alola(ip1(kk),jy(kk,2))+alola(ip2(kk),jy(kk,2)))
228 eras(kk,3)=(alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
229 & * xdeli(kk) + alola(iv(kk),jy(kk,3)) +
230 & ( alola(im1(kk),jy(kk,3)) - alola(iv(kk),jy(kk,3))
231 & - alola(ip1(kk),jy(kk,3))+alola(ip2(kk),jy(kk,3)))
233 eras(kk,4)=(alola(ip1(kk),jy(kk,4))-alola(iv(kk),jy(kk,4)))
234 & * xdeli(kk) + alola(iv(kk),jy(kk,4)) +
235 & ( alola(im1(kk),jy(kk,4)) - alola(iv(kk),jy(kk,4))
236 & - alola(ip1(kk),jy(kk,4))+alola(ip2(kk),jy(kk,4)))
241 apola(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
242 & * xdelj(kk) + (eras(kk,1) - eras(kk,2)
243 & - eras(kk,3) + eras(kk,4)) * xj2tm(kk)
250 apola(2113) = alola(73,37)