31 subroutine biquad(z,glamn,glomn,dla,dlo,
32 *nla,nlo,maxla,maxlo,xla,xlo,val)
59 implicit real*8 (a-h,o-z)
63 real*4 x,y,fx0,fx1,fx2,qterp
68 ratla = difla / (dla/2.d0)
70 if(mod(ila,2).ne.0)
then 77 if(jla.gt.nla-2)jla = nla-2
82 ratlo = diflo / (dlo/2.d0)
84 if(mod(ilo,2).ne.0)
then 91 if(jlo.gt.nlo-2)jlo = nlo-2
98 x=(xlo-dlo*(jlo-1)-glomn)/dlo
107 *
'FATAL in biquad: x<0 : ',f20.10,/,
108 *
' --> Returning with val = ',f40.1)
117 *
'FATAL in biquad: x>2 : ',f20.10,/,
118 *
' --> Returning with val = ',f40.1)
125 y=(xla-dla*(jla-1)-glamn)/dla
134 *
'FATAL in biquad: y<0 : ',f20.10,/,
135 *
' --> Returning with val = ',f40.1)
144 *
'FATAL in biquad: y>2 : ',f20.10,/,
145 *
' --> Returning with val = ',f40.1)
157 fx0=qterp(x,z(jla ,jlo),z(jla ,jlo+1),z(jla ,jlo+2))
158 fx1=qterp(x,z(jla+1,jlo),z(jla+1,jlo+1),z(jla+1,jlo+2))
159 fx2=qterp(x,z(jla+2,jlo),z(jla+2,jlo+1),z(jla+2,jlo+2))
160 val=dble(qterp(y,fx0,fx1,fx2))
subroutine biquad(z, glamn, glomn, dla, dlo, nla, nlo, maxla, maxlo, xla, xlo, val)
Subroutine to perform a 2-D quadratic ("biquadratic") interpolation.