Spherical harmonics - value
val = CL_sphHarmVal(pos, a, f, znm [, maxnm, inc00])
Computes the expression:
Notes:
- maxnm has the form [nmax,mmax]. A value of -1 for nmax or mmax means "all available znm coefficients are used".
[x;y;z] Position vector in cartesian coordinates [m] (3xN)
Reference radius (1x1 or 1xN)
Multiplying coefficient (1x1 or 1xN)
Complex harmonics: znm(n+1, m+1) = Cnm + %i * Snm (PxQ)
(integer, optional) Maximum degree/order to consider: [nmax,mmax] (1x2). Default is [-1,-1].
(boolean, optional) True if harmonic coefficient z00 is included, false otherwise. Default is true.
Value (1xN)
CNES - DCT/SB (AL)
1) On the computation of the spherical harmonic terms ... Leland R. Cunningham