29 parameter(npts=783,ii=29,jj=27)
30 parameter(alatin=20.000)
33 parameter(alat1=9.343)
34 parameter(alon1=192.685)
36 REAL WLON(NPTS), XLAT(NPTS)
37 REAL XI(II,JJ), XJ(II,JJ)
38 REAL XII(NPTS), XJJ(NPTS)
39 REAL ALOLA(361,91), AMERC(NPTS), ERAS(NPTS,4)
40 REAL W1(NPTS), W2(NPTS)
41 REAL XDELI(NPTS), XDELJ(NPTS)
42 REAL XI2TM(NPTS), XJ2TM(NPTS)
44 INTEGER IV(NPTS), JV(NPTS), JY(NPTS,4)
45 INTEGER IM1(NPTS), IP1(NPTS), IP2(NPTS)
51 equivalence(xi(1,1),xii(1)),(xj(1,1),xjj(1))
54 DATA rerth /6.3712e+6/
60 clain = cos(radpd * alatin)
61 dellon = dx / (rerth * clain)
62 djeo = (alog(tan(0.5*((alat1+90.0)*radpd))))/dellon
65 IF (interp.EQ.1) lin = .true.
67 IF (iswt.EQ.1)
GO TO 900
80 xlat(kk) = 2.0*atan(exp(dellon*(djeo + xjj(kk)-1.)))
85 wlon(kk) = (xii(kk) -1.0) * dellon * degpr + alon1
89 w1(kk) = wlon(kk) + 1.0
90 w2(kk) = xlat(kk) + 1.0
101 IF (interp.EQ.intrpo)
GO TO 2100
108 xdeli(k) = w1(k) - iv(k)
109 xdelj(k) = w2(k) - jv(k)
121 xi2tm(k) = xdeli(k) * (xdeli(k) - 1.0) * .25
122 xj2tm(k) = xdelj(k) * (xdelj(k) - 1.0) * .25
132 eras(kk,2) = (alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
133 & * xdeli(kk) + alola(iv(kk),jy(kk,2))
134 eras(kk,3) = (alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
135 & * xdeli(kk) + alola(iv(kk),jy(kk,3))
139 amerc(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
148 eras(kk,1)=(alola(ip1(kk),jy(kk,1))-alola(iv(kk),jy(kk,1)))
149 & * xdeli(kk) + alola(iv(kk),jy(kk,1)) +
150 & ( alola(im1(kk),jy(kk,1)) - alola(iv(kk),jy(kk,1))
151 & - alola(ip1(kk),jy(kk,1))+alola(ip2(kk),jy(kk,1)))
153 eras(kk,2)=(alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
154 & * xdeli(kk) + alola(iv(kk),jy(kk,2)) +
155 & ( alola(im1(kk),jy(kk,2)) - alola(iv(kk),jy(kk,2))
156 & - alola(ip1(kk),jy(kk,2))+alola(ip2(kk),jy(kk,2)))
158 eras(kk,3)=(alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
159 & * xdeli(kk) + alola(iv(kk),jy(kk,3)) +
160 & ( alola(im1(kk),jy(kk,3)) - alola(iv(kk),jy(kk,3))
161 & - alola(ip1(kk),jy(kk,3))+alola(ip2(kk),jy(kk,3)))
163 eras(kk,4)=(alola(ip1(kk),jy(kk,4))-alola(iv(kk),jy(kk,4)))
164 & * xdeli(kk) + alola(iv(kk),jy(kk,4)) +
165 & ( alola(im1(kk),jy(kk,4)) - alola(iv(kk),jy(kk,4))
166 & - alola(ip1(kk),jy(kk,4))+alola(ip2(kk),jy(kk,4)))
171 amerc(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
172 & * xdelj(kk) + (eras(kk,1) - eras(kk,2)
173 & - eras(kk,3) + eras(kk,4)) * xj2tm(kk)