50 SUBROUTINE sptgptsd(IROMB,MAXWV,KMAX,NMAX,
51 & KWSKIP,KGSKIP,NRSKIP,NGSKIP,
52 & RLAT,RLON,WAVE,GP,XP,YP)
54 REAL RLAT(*),RLON(*),WAVE(*)
55 REAL GP(*),XP(*),YP(*)
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,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+2,2,3*KMAX),G(3*KMAX)
65 parameter(pi=3.14159265358979)
68 CALL spwget(iromb,maxwv,eps,epstop,enn1,elonn1,eon,eontop)
69 mx=(maxwv+1)*((iromb+1)*maxwv+2)/2
96 CALL spgrady(iromb,maxwv,enn1,eon,eontop,
97 & wave(kws+1),w(1,ky),wtop(1,ky))
104 IF(abs(rlat((n-1)*nr+1)).GE.89.9995)
THEN
105 slat1=sign(1.,rlat((n-1)*nr+1))
108 slat1=sin(pi/180*rlat((n-1)*nr+1))
109 clat1=cos(pi/180*rlat((n-1)*nr+1))
111 CALL splegend(iromb,maxwv,slat1,clat1,eps,epstop,
113 CALL spsynth(iromb,maxwv,2*maxwv,idim,mdim,2*mxtop,2*kmax,
114 & clat1,pln,plntop,mp,w,wtop,f)
115 CALL spgradx(maxwv,idim,kmax,mp,clat1,f(1,1,1),f(1,1,2*kmax+1))
116 CALL spfftpt(maxwv,1,idim,1,3*kmax,rlon((n-1)*nr+1),f,g)
121 nk=(n-1)*ng+(k-1)*kg+1