40 SUBROUTINE w3ft05(ALOLA,APOLA,W1,W2,LINEAR)
57 DATA degprd/57.2957795/
62 4000
FORMAT ( 52h *** warning , w1 or w2 scratch files over written ,,
63 & 43h i will restore them , burning up cpu time,,
67 IF (linear.EQ.1) lin = .true.
69 IF (iswt.EQ.0)
GO TO 300
74 IF (savew1(kk).NE.w1(kk))
GO TO 200
75 IF (savew2(kk).NE.w2(kk))
GO TO 200
86 gi2 = (1.86603*earthr) / xmesh
97 IF (r2.NE.0.0)
GO TO 400
102 xlong = degprd * atan2(xj,xi)
103 IF (xlong.GE.0.0)
GO TO 500
105 IF (wlon.LT.0.0) wlon = wlon + 360.0
111 xlat = asin((gi2-r2)/(gi2+r2))*degprd
113 IF (wlon.GT.360.0) wlon = wlon - 360.0
114 IF (wlon.LT.0.0) wlon = wlon + 360.0
116 w1(nn) = ( 360.0 - wlon ) / deg + 1.0
117 w2(nn) = xlat / deg + 1.0
144 xi2tm = xdeli * (xdeli-1.) * 0.25
145 xj2tm = xdelj * (xdelj-1.) * 0.25
148 IF ((i.LT.2).OR.(j.LT.2))
GO TO 1200
149 IF ((i.GT.142).OR.(j.GT.34))
GO TO 1200
156 IF (i.EQ.1)
GO TO 1300
157 IF (i.EQ.144)
GO TO 1400
174 IF ((j.LT.2).OR.(j.GE.36)) xj2tm=0.
176 IF (ip2.LT.1) ip2 = 1
177 IF (im1.LT.1) im1 = 1
178 IF (ip2.GT.145) ip2 = 145
179 IF (im1.GT.145) im1 = 145
184 IF (ip1.LT.1) ip1 = 1
185 IF (i.GT.145) i = 145
186 IF (ip1.GT.145) ip1 = 145
189 IF (.NOT.lin)
GO TO 1900
196 IF (j1.GT.37) j1 = 37
197 eras(k) = (alola(ip1,j1) - alola(i,j1)) * xdeli + alola(i,j1)
200 apola(kk) = eras(2) + (eras(3) - eras(2)) * xdelj
211 IF (j1.GT.37) j1 = 37
212 eras(k) = (alola(ip1,j1)-alola(i,j1))*xdeli+alola(i,j1)+
213 & (alola(im1,j1)-alola(i,j1)-alola(ip1,j1)+
214 & alola(ip2,j1))*xi2tm
217 apola(kk) = eras(2)+(eras(3)-eras(2))*xdelj+(eras(1)-
218 & eras(2)-eras(3)+eras(4)) * xj2tm
224 apola(2113) = alola(73,37)
subroutine w3ft05(alola, apola, w1, w2, linear)
Convert a northern hemisphere 2.5 degree lat.,lon.