DCL:MATH2:SHTLIB: Spherical Harmonic Function: Explanation of Subroutines
Performs forward Legendre transformation.
The following are performed on floating-point wave data Wm(&phi) for a zonal wavenumber.
When ISW=0, a normal forward Legendre transformation is performed.
(4.36)
When ISW=1, the longitudinal derivative of the forward Legendre transform is calculated.
(4.37)
When ISW=-1, the meridional derivative of the forward Legendre transform is calculated.
(4.38)
SHTLFW(MM,JM,M,ISW,WM,SM,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.) M (I) Input parameter. The zonal wavenumber (m) on which to perform transformation. WM (R) Input parameter. Wave data. (For length and arrangement, see SHTLBW.) SM (R) Output parameter. Spectral data. (For length and arrangement, see SHTLBW.) WORK (R) Working area initialized by SHTINT.