74 SUBROUTINE sptranf(IROMB,MAXWV,IDRT,IMAX,JMAX,KMAX,
75 & IP,IS,JN,JS,KW,KG,JB,JE,JC,
76 & WAVE,GRIDN,GRIDS,IDIR)
78 REAL WAVE(*),GRIDN(*),GRIDS(*)
79 REAL EPS((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EPSTOP(MAXWV+1)
80 REAL ENN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
81 REAL ELONN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
82 REAL EON((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EONTOP(MAXWV+1)
83 REAL(8) AFFT(50000+4*IMAX), AFFT_TMP(50000+4*IMAX)
84 REAL CLAT(JB:JE),SLAT(JB:JE),WLAT(JB:JE)
85 REAL PLN((MAXWV+1)*((IROMB+1)*MAXWV+2)/2,JB:JE)
86 REAL PLNTOP(MAXWV+1,JB:JE)
87 REAL WTOP(2*(MAXWV+1))
93 CALL sptranf0(iromb,maxwv,idrt,imax,jmax,jb,je,
94 & eps,epstop,enn1,elonn1,eon,eontop,
95 & afft,clat,slat,wlat,pln,plntop)
105 CALL sptranf1(iromb,maxwv,idrt,imax,jmax,j,j,
106 & eps,epstop,enn1,elonn1,eon,eontop,
107 & afft_tmp,clat(j),slat(j),wlat(j),
108 & pln(1,j),plntop(1,j),mp,
109 & wave(kws+1),wtop,g,idir)
110 IF(ip.EQ.1.AND.is.EQ.1)
THEN
112 ijkn=i+(j-jb)*jn+(k-1)*kg
113 ijks=i+(j-jb)*js+(k-1)*kg
119 ijkn=mod(i+ip-2,imax)*is+(j-jb)*jn+(k-1)*kg+1
120 ijks=mod(i+ip-2,imax)*is+(j-jb)*js+(k-1)*kg+1
136 IF(wlat(j).GT.0.)
THEN
137 IF(ip.EQ.1.AND.is.EQ.1)
THEN
139 ijkn=i+(j-jb)*jn+(k-1)*kg
140 ijks=i+(j-jb)*js+(k-1)*kg
146 ijkn=mod(i+ip-2,imax)*is+(j-jb)*jn+(k-1)*kg+1
147 ijks=mod(i+ip-2,imax)*is+(j-jb)*js+(k-1)*kg+1
152 CALL sptranf1(iromb,maxwv,idrt,imax,jmax,j,j,
153 & eps,epstop,enn1,elonn1,eon,eontop,
154 & afft_tmp,clat(j),slat(j),wlat(j),
155 & pln(1,j),plntop(1,j),mp,
156 & wave(kws+1),wtop,g,idir)
subroutine sptranf0(IROMB, MAXWV, IDRT, IMAX, JMAX, JB, JE, EPS, EPSTOP, ENN1, ELONN1, EON, EONTOP, AFFT, CLAT, SLAT, WLAT, PLN, PLNTOP)
This subprogram performs an initialization for subprogram sptranf().
subroutine sptranf1(IROMB, MAXWV, IDRT, IMAX, JMAX, JB, JE, EPS, EPSTOP, ENN1, ELONN1, EON, EONTOP, AFFT, CLAT, SLAT, WLAT, PLN, PLNTOP, MP, W, WTOP, G, IDIR)
This subprogram performs an single latitude transform for subprogram sptranf().
subroutine sptranf(IROMB, MAXWV, IDRT, IMAX, JMAX, KMAX, IP, IS, JN, JS, KW, KG, JB, JE, JC, WAVE, GRIDN, GRIDS, IDIR)
This subprogram performs a spherical transform between spectral coefficients of scalar quantities and...