4.3.15 SHTSGM

1.
Function
Performs inverse spectral transformation by successively carrying out SHTSWM and SHTWGM, for a single specified wavenumber component.

2.
Definition
See SHTSWM and SHTWGM.

3.
Call
SHTSGM(MM,JM,IM,M,ISW,S,WR,WI,G,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)
IM (I) Input parameter. 1/2 of the EW partition number (I)
M (I) Input parameter. Specifies the wavenumber to transform. (See SHTSWM.)
ISW (I) Input parameter. Specifies the type of transformation. (See SHTS2G.)
S (R) Input parameter. Spectral data. (For length and arrangement, see SHTNML.)
WR (R) Output parameter. The floating-point part of Wm(&phi). (For length and arrangement, see SHTSWM.)
WI (R) Output parameter. The imaginary part of Wm(&phi). (For length and arrangement, see SHTSWM.)
G (R) Output parameter. Grid data. (For length and arrangement, see SHTW2G.)
WORK (R) Working area initialized by SHTINT.
5.
Notes
(a)
This subroutine is equivalent to successively calling SHTSWM and SHTWGM.