DCL:MATH2:SHTLIB: Spherical Harmonic Function: Explanation of Subroutines
Calculates the associated Legendre function.
Calculates the associated Legendre function for the specified zonal wavenumber of 0≤m≤M:
Pnm(sin&phi) (n =m, m+1,..., M ) (4.35)
(See "Summary" for the definition of the associated Legendre function.)
SHTFUN(MM,JM,M,FUN,WORK)
MM (I) Input parameter. The cut-off wavenumber (M). JM (I) Input parameter. 1/2 of the NS partition number (J) M (I) Input parameter. The zonal wavenumber (m) of the associated Legendre function to calculate. FUN (R) An array of length (2*JM+1)*(MM-M+1) in which is stored. (See Notes for arrangement.) WORK (R) Working area initialized by SHTINT.