52 & KWSKIP,KGSKIP,NRSKIP,NGSKIP,
53 & RLAT,RLON,WAVED,WAVEZ,UP,VP)
55 REAL RLAT(*),RLON(*),WAVED(*),WAVEZ(*),UP(*),VP(*)
56 REAL EPS((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EPSTOP(MAXWV+1)
57 REAL ENN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
58 REAL ELONN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
59 REAL EON((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EONTOP(MAXWV+1)
61 REAL W((MAXWV+1)*((IROMB+1)*MAXWV+2)/2*2+1,2*KMAX)
62 REAL WTOP(2*(MAXWV+1),2*KMAX)
63 REAL PLN((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),PLNTOP(MAXWV+1)
64 REAL F(2*MAXWV+3,2,2*KMAX)
66 parameter(pi=3.14159265358979)
69 CALL spwget(iromb,maxwv,eps,epstop,enn1,elonn1,eon,eontop)
70 mx=(maxwv+1)*((iromb+1)*maxwv+2)/2
88 CALL spdz2uv(iromb,maxwv,enn1,elonn1,eon,eontop,
89 & waved(kws+1),wavez(kws+1),
90 & w(1,k),w(1,kmax+k),wtop(1,k),wtop(1,kmax+k))
97 radlat=pi/180*rlat((n-1)*nr+1)
98 IF(rlat((n-1)*nr+1).GE.89.9995)
THEN
101 ELSEIF(rlat((n-1)*nr+1).LE.-89.9995)
THEN
108 CALL splegend(iromb,maxwv,slat1,clat1,eps,epstop,
110 CALL spsynth(iromb,maxwv,2*maxwv,idim,mdim,2*mxtop,2*kmax,
111 & clat1,pln,plntop,mp,w,wtop,f)
112 CALL spfftpt(maxwv,1,2*maxwv+3,1,2*kmax,rlon((n-1)*nr+1),f,g)
116 nk=(n-1)*ng+(k-1)*kg+1
subroutine spdz2uv(I, M, ENN1, ELONN1, EON, EONTOP, D, Z, U, V, UTOP, VTOP)
Computes the wind components from divergence and vorticity in spectral space.
subroutine spfftpt(M, N, INCW, INCG, KMAX, RLON, W, G)
This subprogram computes a slow Fourier transform from Fourier space to a set of gridpoints.
subroutine splegend(I, M, SLAT, CLAT, EPS, EPSTOP, PLN, PLNTOP)
Evaluates the orthonormal associated Legendre polynomials in the spectral domain at a given latitude.
subroutine spsynth(I, M, IM, IX, NC, NCTOP, KM, CLAT, PLN, PLNTOP, MP, SPC, SPCTOP, F)
Synthesizes Fourier coefficients from spectral coefficients for a latitude pair (Northern and Souther...
subroutine sptgptv(IROMB, MAXWV, KMAX, NMAX, KWSKIP, KGSKIP, NRSKIP, NGSKIP, RLAT, RLON, WAVED, WAVEZ, UP, VP)
This subprogram performs a spherical transform from spectral coefficients of divergences and curls to...
subroutine spwget(IROMB, MAXWV, EPS, EPSTOP, ENN1, ELONN1, EON, EONTOP)
This subprogram gets wave-space constants.