28 parameter(npts=625,ii=25,jj=25)
29 parameter(alatin=20.000)
32 parameter(alat1=9.000)
33 parameter(alon1=283.000)
35 REAL R2(NPTS), WLON(NPTS)
36 REAL XLAT(NPTS), XI(II,JJ), XJ(II,JJ)
37 REAL XII(NPTS), XJJ(NPTS), ANGLE(NPTS)
38 REAL ALOLA(361,91), AMERC(NPTS), ERAS(NPTS,4)
39 REAL W1(NPTS), W2(NPTS)
40 REAL XDELI(NPTS), XDELJ(NPTS)
41 REAL XI2TM(NPTS), XJ2TM(NPTS)
43 INTEGER IV(NPTS), JV(NPTS), JY(NPTS,4)
44 INTEGER IM1(NPTS), IP1(NPTS), IP2(NPTS)
50 equivalence(xi(1,1),xii(1)),(xj(1,1),xjj(1))
53 DATA rerth /6.3712e+6/
59 clain = cos(radpd * alatin)
60 dellon = dx / (rerth * clain)
61 djeo = (alog(tan(0.5*((alat1+90.0)*radpd))))/dellon
63 IF (interp.EQ.1) lin = .true.
65 IF (iswt.EQ.1)
GO TO 900
78 xlat(kk) = 2.0*atan(exp(dellon*(djeo + xjj(kk)-1.)))
83 wlon(kk) = (xii(kk) -1.0) * dellon * degpr + alon1
87 w1(kk) = wlon(kk) + 1.0
88 w2(kk) = xlat(kk) + 1.0
99 IF (interp.EQ.intrpo)
GO TO 2100
106 xdeli(k) = w1(k) - iv(k)
107 xdelj(k) = w2(k) - jv(k)
119 xi2tm(k) = xdeli(k) * (xdeli(k) - 1.0) * .25
120 xj2tm(k) = xdelj(k) * (xdelj(k) - 1.0) * .25
130 eras(kk,2) = (alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
131 & * xdeli(kk) + alola(iv(kk),jy(kk,2))
132 eras(kk,3) = (alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
133 & * xdeli(kk) + alola(iv(kk),jy(kk,3))
137 amerc(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
146 eras(kk,1)=(alola(ip1(kk),jy(kk,1))-alola(iv(kk),jy(kk,1)))
147 & * xdeli(kk) + alola(iv(kk),jy(kk,1)) +
148 & ( alola(im1(kk),jy(kk,1)) - alola(iv(kk),jy(kk,1))
149 & - alola(ip1(kk),jy(kk,1))+alola(ip2(kk),jy(kk,1)))
151 eras(kk,2)=(alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
152 & * xdeli(kk) + alola(iv(kk),jy(kk,2)) +
153 & ( alola(im1(kk),jy(kk,2)) - alola(iv(kk),jy(kk,2))
154 & - alola(ip1(kk),jy(kk,2))+alola(ip2(kk),jy(kk,2)))
156 eras(kk,3)=(alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
157 & * xdeli(kk) + alola(iv(kk),jy(kk,3)) +
158 & ( alola(im1(kk),jy(kk,3)) - alola(iv(kk),jy(kk,3))
159 & - alola(ip1(kk),jy(kk,3))+alola(ip2(kk),jy(kk,3)))
161 eras(kk,4)=(alola(ip1(kk),jy(kk,4))-alola(iv(kk),jy(kk,4)))
162 & * xdeli(kk) + alola(iv(kk),jy(kk,4)) +
163 & ( alola(im1(kk),jy(kk,4)) - alola(iv(kk),jy(kk,4))
164 & - alola(ip1(kk),jy(kk,4))+alola(ip2(kk),jy(kk,4)))
169 amerc(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
170 & * xdelj(kk) + (eras(kk,1) - eras(kk,2)
171 & - eras(kk,3) + eras(kk,4)) * xj2tm(kk)