4.3.14 SHTWGM

1.
Function
Performs the inverse Legendre transformation, which corresponds to the latter half of the inverse spectral transformation, for a single specified wavenumber component.

2.
Definition
Transforms wave data Wm(&phi) into grid data G(&lambda,&phi”Ė only for a single specified wavenumber component m=M (>0).. See SHTW2G for equations of transformation.

3.
Call
SHTWGM(MM,JM,IM,M,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 above definition.)
WR (R) Input parameter. The floating-point part of Wm(&phi). (For length and arrangement, see SHTSWM.)
WI (R) Input 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)
For M=0 (zonal component), use SHTSWZ.