4.3.16 SHTSWZ

1.
Function
Performs inverse Legendre transformation, which corresponds to the first half of the inverse spectral transformation, only for the zonal component.

2.
Definition
Transforms spectral data Smn into wave data Wm(&phi)only for the zonal component m=0. See SHTS2W for equations of transformation.

3.
Call
SHTSWZ(MM,JM,ISW,S,WZ,WORK)

4.
Explanation of Parameters
MM (I) Input parameter. The cut-off wavenumber (M).
JM (I) Input parameter. 1/2 of the NS partition number (J).
ISW (I) Input parameter. Specifies the type of transformation. (See SHTS2W.)
S (R) Input parameter. Spectral data. (For length and arrangement, see SHTNML.)
WZ (R) Output parameter. Stores. W0(&phi). An array of length 2*JM+1. (See Notes for arrangement of array.)
WORK (R) Working area initialized by SHTINT.

5.
Notes
(a)
When WZ(-JM:JM) is declared in advance, W0(&phi j) is stored in WZ(J).