Calculate the spherical harmonic coefficients of a spherical cap.

Usage

call SphericalCapCoef (coef, theta, lmax, exitstatus)

Parameters

coef : output, real*8, dimension(lmaxin+1)
The zonal spherical harmonic coefficients of a spherical cap centered over the north pole.
theta : input, real*8
lmax : optional, input, integer, default = lmaxin
exitstatus : output, optional, integer
SphericalCapCoef will calculate the spherical harmonic coefficients of a spherical cap centered over the north pole. The zonal coefficients, returned in the array coef, are normalized such that the degree-0 term is 1, and are to be used with either the geodesy 4-pi normalized or orthonormalized spherical harmonics.