35 SUBROUTINE spanaly(I,M,IM,IX,NC,NCTOP,KM,WGT,CLAT,PLN,PLNTOP,MP,
38 REAL PLN((M+1)*((I+1)*M+2)/2),PLNTOP(M+1)
40 REAL SPC(NC,KM),SPCTOP(NCTOP,KM)
49 nt=mod(m+1+(i-1)*l,2)+1
50 ks=l*(2*m+(i-1)*(l-1))
53 fw(1,1)=wgt*(f(2*l+1,1,k)+f(2*l+1,2,k))
54 fw(2,1)=wgt*(f(2*l+2,1,k)+f(2*l+2,2,k))
55 fw(1,2)=wgt*(f(2*l+1,1,k)-f(2*l+1,2,k))
56 fw(2,2)=wgt*(f(2*l+2,1,k)-f(2*l+2,2,k))
58 fw(1,1)=wgt*clat*(f(2*l+1,1,k)+f(2*l+1,2,k))
59 fw(2,1)=wgt*clat*(f(2*l+2,1,k)+f(2*l+2,2,k))
60 fw(1,2)=wgt*clat*(f(2*l+1,1,k)-f(2*l+1,2,k))
61 fw(2,2)=wgt*clat*(f(2*l+2,1,k)-f(2*l+2,2,k))
62 spctop(2*l+1,k)=spctop(2*l+1,k)+plntop(l+1)*fw(1,nt)
63 spctop(2*l+2,k)=spctop(2*l+2,k)+plntop(l+1)*fw(2,nt)
66 spc(ks+2*n+1,k)=spc(ks+2*n+1,k)+pln(kp+n)*fw(1,1)
67 spc(ks+2*n+2,k)=spc(ks+2*n+2,k)+pln(kp+n)*fw(2,1)
70 spc(ks+2*n+1,k)=spc(ks+2*n+1,k)+pln(kp+n)*fw(1,2)
71 spc(ks+2*n+2,k)=spc(ks+2*n+2,k)+pln(kp+n)*fw(2,2)
subroutine spanaly(I, M, IM, IX, NC, NCTOP, KM, WGT, CLAT, PLN, PLNTOP, MP, F, SPC, SPCTOP)
Analyzes spectral coefficients from Fourier coefficients for a latitude pair (Northern and Southern h...