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.