DCL:MATH2:SHTLIB: Spherical Harmonic Functions: Explanation of Subroutines
Performs the forward Legendre transformation, which corresponds to the latter half of the forward spectral transformation.
When ISW=0, the normal forward Legendre transformation is performed.
(4.29)
When ISW=1, the longitudinal derivative of the forward Legendre transform is calculated.
(4.30)
When ISW=-1, the meridional derivative of the forward Legendre transform is calculated.
(4.31)
SHTW2S(MM,JM,ISW,W,S,WORK)
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 above definition.) W (R) Input parameter. Wave data. (For length and arrangement, see SHTS2W. S (R) Output parameter. Spectral data. (For length and arrangement, see SHTNML.) WORK (R) Working area initialized by SHTINT.