53 & KWSKIP,KGSKIP,NRSKIP,NGSKIP,
54 & RLAT,RLON,WAVE,GP,XP,YP)
56 REAL RLAT(*),RLON(*),WAVE(*)
57 REAL GP(*),XP(*),YP(*)
58 REAL EPS((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EPSTOP(MAXWV+1)
59 REAL ENN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
60 REAL ELONN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
61 REAL EON((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EONTOP(MAXWV+1)
63 REAL W((MAXWV+1)*((IROMB+1)*MAXWV+2)/2*2,2*KMAX)
64 REAL WTOP(2*(MAXWV+1),2*KMAX)
65 REAL PLN((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),PLNTOP(MAXWV+1)
66 REAL F(2*MAXWV+2,2,3*KMAX),G(3*KMAX)
67 parameter(pi=3.14159265358979)
70 CALL spwget(iromb,maxwv,eps,epstop,enn1,elonn1,eon,eontop)
71 mx=(maxwv+1)*((iromb+1)*maxwv+2)/2
98 CALL spgrady(iromb,maxwv,enn1,eon,eontop,
99 & wave(kws+1),w(1,ky),wtop(1,ky))
106 IF(abs(rlat((n-1)*nr+1)).GE.89.9995)
THEN
107 slat1=sign(1.,rlat((n-1)*nr+1))
110 slat1=sin(pi/180*rlat((n-1)*nr+1))
111 clat1=cos(pi/180*rlat((n-1)*nr+1))
113 CALL splegend(iromb,maxwv,slat1,clat1,eps,epstop,
115 CALL spsynth(iromb,maxwv,2*maxwv,idim,mdim,2*mxtop,2*kmax,
116 & clat1,pln,plntop,mp,w,wtop,f)
117 CALL spgradx(maxwv,idim,kmax,mp,clat1,f(1,1,1),f(1,1,2*kmax+1))
118 CALL spfftpt(maxwv,1,idim,1,3*kmax,rlon((n-1)*nr+1),f,g)
123 nk=(n-1)*ng+(k-1)*kg+1
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 spgradx(m, incw, kmax, mp, clat, w, wx)
This subprogram computes the x-gradient of fields in complex Fourier space.
subroutine spgrady(i, m, enn1, eon, eontop, q, qdy, qdytop)
Computes the horizontal vector y-gradient of a scalar field in spectral space.
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 sptgptsd(iromb, maxwv, kmax, nmax, kwskip, kgskip, nrskip, ngskip, rlat, rlon, wave, gp, xp, yp)
This subprogram performs a spherical transform from spectral coefficients of scalar quantities to spe...
subroutine spwget(iromb, maxwv, eps, epstop, enn1, elonn1, eon, eontop)
This subprogram gets wave-space constants.