25 subroutine bilin(data,glamn,glomn,dla,dlo,
26 *nla,nlo,maxla,maxlo,xla,xlo,val)
41 implicit real*8 (a-h,o-z)
42 real*4 data(maxla,maxlo)
43 logical onedlat,onedlon
57 gla0 = glamn + (ila-1)*dla
63 glo0 = glomn + (ilo-1)*dlo
70 val = (1.d0-t)*(1.d0-u)*
data(ila ,ilo )
71 * + ( t)*(1.d0-u)*
data(ila ,ilo+1)
72 * + ( t)*( u)*
data(ila+1,ilo+1)
73 * + (1.d0-t)*( u)*
data(ila+1,ilo )
78 write(6,200)ila,ilo,gla0,glo0
79 write(6,199)xla-gla0,xlo-glo0
80 write(6,201)ila,ilo,gla0,glo0,
82 write(6,201)ila,ilo+1,gla0,glo0+dlo,
84 write(6,201)ila+1,ilo,gla0+dla,glo0,
86 write(6,201)ila+1,ilo+1,gla0+dla,glo0+dlo,
88 write(6,202)
'SW',(1.d0-t)*(1.d0-u)
89 write(6,202)
'SE',( t)*(1.d0-u)
90 write(6,202)
'NW',( t)*( u)
91 write(6,202)
'NE',(1.d0-t)*( u)
93 *
'Weight to ',a,
' corner = ',f20.15)
96 *6x,
'bilin.f: lat/lon = ',f10.6,1x,f10.6)
98 *6x,
'bilin.f: diff from SW corner of cell = ',f10.6,1x,f10.6)
100 *6x,
'bilin.f: SW corner: ',i6,1x,i6,1x,f10.6,1x,f10.6)
102 *6x,2(i6,1x),2(f10.6,1x),f20.15)
106 801
format(f15.8,1x,f15.8,1x,i6,1x,i6,1x,
107 *f15.8,1x,f15.8,1x,f8.6,1x,f8.6,1x,f20.10)
112 802
format(4(f15.8,1x))
subroutine bilin(data, glamn, glomn, dla, dlo, nla, nlo, maxla, maxlo, xla, xlo, val)
Subroutine to perform bilinear interpolation.