DCL:MATH2:SHTLIB: Spherical Harmonic Functions: Explanation of Subroutines
Performs the inverse Legendre transformation, which corresponds to the latter half of the inverse spectral transformation, for a single specified wavenumber component.
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.
SHTWGM(MM,JM,IM,M,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 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.