4.3.10 SHTSWA

1.
Function
Performs inverse Legendre transformation, which corresponds to the first half of the inverse spectral transformation, over a specified wavenumber interval.

2.
Definition
Transforms spectral data Smn to wave data Wm(&phi) only within the wavenumber range M1≤|m|≤M2. See SHTS2W for equations used in the transformation.

3.
Call
SHTSWA(MM,JM,ISW,M1,M2,S,W,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.)
M1 (I) Input parameter. The minimum value in the wavenumber interval for transformation. (See above definition.)
M2 (I) Input parameter. The maximum value in the wavenumber interval for transformation. (See above definition.)
S (R) Input parameter. Spectral data. (For length and arrangement, see SHTNML.)
W (R) Output parameter. Wave data. (For length and arrangement, see SHTS2W.)
WORK (R) Working area initialized by SHTINT.

5.
Notes
(a)
When W(-JM:JM,-MM:MM) is declared in advance, 0 is substituted into W(J,M) (|M|<M1, |M|>M2), outside the range of the specified interval.