71 SUBROUTINE sptranf(IROMB,MAXWV,IDRT,IMAX,JMAX,KMAX,
72 & IP,IS,JN,JS,KW,KG,JB,JE,JC,
73 & WAVE,GRIDN,GRIDS,IDIR)
75 REAL WAVE(*),GRIDN(*),GRIDS(*)
76 REAL EPS((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EPSTOP(MAXWV+1)
77 REAL ENN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
78 REAL ELONN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
79 REAL EON((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EONTOP(MAXWV+1)
80 REAL(8) AFFT(50000+4*IMAX), AFFT_TMP(50000+4*IMAX)
81 REAL CLAT(JB:JE),SLAT(JB:JE),WLAT(JB:JE)
82 REAL PLN((MAXWV+1)*((IROMB+1)*MAXWV+2)/2,JB:JE)
83 REAL PLNTOP(MAXWV+1,JB:JE)
84 REAL WTOP(2*(MAXWV+1))
90 CALL sptranf0(iromb,maxwv,idrt,imax,jmax,jb,je,
91 & eps,epstop,enn1,elonn1,eon,eontop,
92 & afft,clat,slat,wlat,pln,plntop)
102 CALL sptranf1(iromb,maxwv,idrt,imax,jmax,j,j,
103 & eps,epstop,enn1,elonn1,eon,eontop,
104 & afft_tmp,clat(j),slat(j),wlat(j),
105 & pln(1,j),plntop(1,j),mp,
106 & wave(kws+1),wtop,g,idir)
107 IF(ip.EQ.1.AND.is.EQ.1)
THEN
109 ijkn=i+(j-jb)*jn+(k-1)*kg
110 ijks=i+(j-jb)*js+(k-1)*kg
116 ijkn=mod(i+ip-2,imax)*is+(j-jb)*jn+(k-1)*kg+1
117 ijks=mod(i+ip-2,imax)*is+(j-jb)*js+(k-1)*kg+1
133 IF(wlat(j).GT.0.)
THEN
134 IF(ip.EQ.1.AND.is.EQ.1)
THEN
136 ijkn=i+(j-jb)*jn+(k-1)*kg
137 ijks=i+(j-jb)*js+(k-1)*kg
143 ijkn=mod(i+ip-2,imax)*is+(j-jb)*jn+(k-1)*kg+1
144 ijks=mod(i+ip-2,imax)*is+(j-jb)*js+(k-1)*kg+1
149 CALL sptranf1(iromb,maxwv,idrt,imax,jmax,j,j,
150 & eps,epstop,enn1,elonn1,eon,eontop,
151 & afft_tmp,clat(j),slat(j),wlat(j),
152 & pln(1,j),plntop(1,j),mp,
153 & wave(kws+1),wtop,g,idir)