40 SUBROUTINE w3ft06(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.
68 IF (iswt.EQ.0)
GO TO 300
73 IF (savew1(kk).NE.w1(kk))
GO TO 200
74 IF (savew2(kk).NE.w2(kk))
GO TO 200
85 gi2 = (1.86603*earthr) / xmesh
96 IF (r2.NE.0.0)
GO TO 400
101 xlong = degprd * atan2(xj,xi)
103 IF (wlon.LT.0.0) wlon = wlon + 360.0
104 xlat = asin((gi2-r2)/(gi2+r2))*degprd
108 IF (wlon.GT.360.0) wlon = wlon - 360.0
109 IF (wlon.LT.0.0) wlon = wlon + 360.0
111 w1(nn) = ( 360.0 - wlon ) / deg + 1.0
112 w2(nn) = xlat / deg + 1.0
139 xi2tm = xdeli*(xdeli-1.)*.25
140 xj2tm = xdelj*(xdelj-1.)*.25
142 IF ((i.LT.2).OR.(j.LT.2))
GO TO 1000
143 IF ((i.GT.142).OR.(j.GT.34))
GO TO 1000
148 IF (i.EQ.1)
GO TO 1100
149 IF (i.EQ.144)
GO TO 1200
166 IF ((j.LT.2).OR.(j.GE.36)) xj2tm=0.
168 IF (ip2.LT.1) ip2 = 1
169 IF (im1.LT.1) im1 = 1
170 IF (ip2.GT.145) ip2 = 145
171 IF (im1.GT.145) im1 = 145
176 IF (ip1.LT.1) ip1 = 1
177 IF (i.GT.145) i = 145
178 IF (ip1.GT.145) ip1 = 145
182 IF (.NOT.lin)
GO TO 1700
190 eras(k) = (alola(ip1,j1) - alola(i,j1)) * xdeli + alola(i,j1)
193 apola(kk) = eras(2) + (eras(3) - eras(2)) * xdelj
205 eras(k)=(alola(ip1,j1)-alola(i,j1))*xdeli+alola(i,j1)+
206 & (alola(im1,j1)-alola(i,j1)-alola(ip1,j1)+
207 & alola(ip2,j1))*xi2tm
210 apola(kk) = eras(2)+(eras(3)-eras(2))*xdelj+(eras(1)-
211 & eras(2)-eras(3)+eras(4))*xj2tm
217 apola(2113) = alola(73,1)
subroutine w3ft06(alola, apola, w1, w2, linear)
Convert a southern hemisphere 2.5 degree lat.,lon.