67 & KWSKIP,KGSKIP,NRSKIP,NGSKIP,
68 & RLAT,RLON,WAVED,WAVEZ,
69 & DP,ZP,UP,VP,UXP,VXP,UYP,VYP)
71 REAL RLAT(*),RLON(*),WAVED(*),WAVEZ(*)
72 REAL DP(*),ZP(*),UP(*),VP(*),UXP(*),VXP(*),UYP(*),VYP(*)
73 REAL EPS((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EPSTOP(MAXWV+1)
74 REAL ENN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
75 REAL ELONN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
76 REAL EON((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EONTOP(MAXWV+1)
78 REAL W((MAXWV+1)*((IROMB+1)*MAXWV+2)/2*2,4*KMAX)
79 REAL WTOP(2*(MAXWV+1),4*KMAX)
80 REAL PLN((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),PLNTOP(MAXWV+1)
81 REAL F(2*MAXWV+2,2,6*KMAX),G(6*KMAX)
82 parameter(pi=3.14159265358979)
85 CALL spwget(iromb,maxwv,eps,epstop,enn1,elonn1,eon,eontop)
86 mx=(maxwv+1)*((iromb+1)*maxwv+2)/2
117 CALL spdz2uv(iromb,maxwv,enn1,elonn1,eon,eontop,
118 & waved(kws+1),wavez(kws+1),
119 & w(1,ku),w(1,kv),wtop(1,ku),wtop(1,kv))
128 IF(abs(rlat((n-1)*nr+1)).GE.89.9995)
THEN
129 slat1=sign(1.,rlat((n-1)*nr+1))
132 slat1=sin(pi/180*rlat((n-1)*nr+1))
133 clat1=cos(pi/180*rlat((n-1)*nr+1))
135 CALL splegend(iromb,maxwv,slat1,clat1,eps,epstop,
137 CALL spsynth(iromb,maxwv,2*maxwv,idim,mdim,2*mxtop,4*kmax,
138 & clat1,pln,plntop,mp,w,wtop,f)
139 CALL spgradx(maxwv,idim,2*kmax,mp(2*kmax+1),clat1,
140 & f(1,1,2*kmax+1),f(1,1,4*kmax+1))
141 CALL spfftpt(maxwv,1,idim,1,6*kmax,rlon((n-1)*nr+1),f,g)
149 nk=(n-1)*ng+(k-1)*kg+1
156 uyp(nk)=g(kvx)-clat1*g(kz)
157 vyp(nk)=clat1*g(kd)-g(kux)
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 spgradx(M, INCW, KMAX, MP, CLAT, W, WX)
This subprogram computes the x-gradient of fields in complex Fourier 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 sptgptvd(IROMB, MAXWV, KMAX, NMAX, KWSKIP, KGSKIP, NRSKIP, NGSKIP, RLAT, RLON, WAVED, WAVEZ, DP, ZP, UP, VP, UXP, VXP, UYP, VYP)
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.