DCL:MATH2:SHTLIB: Spherical Harmonic Functions: Explanation of Subroutines
Performs inverse spectral transformation by successively carrying out SHTSWM and SHTWGM, for a single specified wavenumber component.
See SHTSWM and SHTWGM.
SHTSGM(MM,JM,IM,M,ISW,S,WR,WI,G,WORK)
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.