28 parameter(npts=6324,ii=93,jj=68)
29 parameter(alatin=20.000)
31 parameter(dx=160000.0)
32 parameter(alat1=-25.000)
33 parameter(alon1=110.000)
35 REAL WLON(NPTS), XLAT(NPTS)
36 REAL XI(II,JJ), XJ(II,JJ)
37 REAL XII(NPTS), XJJ(NPTS)
38 REAL ALOLA(361,181), 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
64 IF (interp.EQ.1) lin = .true.
66 IF (iswt.EQ.1)
GO TO 900
79 xlat(kk) = 2.0*atan(exp(dellon*(djeo + xjj(kk)-1.)))
84 wlon(kk) = (xii(kk) -1.0) * dellon * degpr + alon1
88 w1(kk) = wlon(kk) + 1.0
89 w2(kk) = xlat(kk) + 91.0
100 IF (interp.EQ.intrpo)
GO TO 2100
107 xdeli(k) = w1(k) - iv(k)
108 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
131 eras(kk,2) = (alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
132 & * xdeli(kk) + alola(iv(kk),jy(kk,2))
133 eras(kk,3) = (alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
134 & * xdeli(kk) + alola(iv(kk),jy(kk,3))
138 amerc(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
147 eras(kk,1)=(alola(ip1(kk),jy(kk,1))-alola(iv(kk),jy(kk,1)))
148 & * xdeli(kk) + alola(iv(kk),jy(kk,1)) +
149 & ( alola(im1(kk),jy(kk,1)) - alola(iv(kk),jy(kk,1))
150 & - alola(ip1(kk),jy(kk,1))+alola(ip2(kk),jy(kk,1)))
152 eras(kk,2)=(alola(ip1(kk),jy(kk,2))-alola(iv(kk),jy(kk,2)))
153 & * xdeli(kk) + alola(iv(kk),jy(kk,2)) +
154 & ( alola(im1(kk),jy(kk,2)) - alola(iv(kk),jy(kk,2))
155 & - alola(ip1(kk),jy(kk,2))+alola(ip2(kk),jy(kk,2)))
157 eras(kk,3)=(alola(ip1(kk),jy(kk,3))-alola(iv(kk),jy(kk,3)))
158 & * xdeli(kk) + alola(iv(kk),jy(kk,3)) +
159 & ( alola(im1(kk),jy(kk,3)) - alola(iv(kk),jy(kk,3))
160 & - alola(ip1(kk),jy(kk,3))+alola(ip2(kk),jy(kk,3)))
162 eras(kk,4)=(alola(ip1(kk),jy(kk,4))-alola(iv(kk),jy(kk,4)))
163 & * xdeli(kk) + alola(iv(kk),jy(kk,4)) +
164 & ( alola(im1(kk),jy(kk,4)) - alola(iv(kk),jy(kk,4))
165 & - alola(ip1(kk),jy(kk,4))+alola(ip2(kk),jy(kk,4)))
170 amerc(kk) = eras(kk,2) + (eras(kk,3) - eras(kk,2))
171 & * xdelj(kk) + (eras(kk,1) - eras(kk,2)
172 & - eras(kk,3) + eras(kk,4)) * xj2tm(kk)