<< CL_sphHarmGrad Math CL_stat >>

CelestLab >> Math > CL_sphHarmVal

CL_sphHarmVal

Spherical harmonics - value

Calling Sequence

val = CL_sphHarmVal(pos, a, f, znm  [, maxnm, inc00])

Description

Parameters

pos :

[x;y;z] Position vector in cartesian coordinates [m] (3xN)

a :

Reference radius (1x1 or 1xN)

f :

Multiplying coefficient (1x1 or 1xN)

znm :

Complex harmonics: znm(n+1, m+1) = Cnm + %i * Snm (PxQ)

maxnm :

(integer, optional) Maximum degree/order to consider: [nmax,mmax] (1x2). Default is [-1,-1].

inc00 :

(boolean, optional) True if harmonic coefficient z00 is included, false otherwise. Default is true.

val :

Value (1xN)

Authors

Bibliography

See also

Examples

pos = [[7000.e3; 0; 0], [0; 7000.e3; 0], [0; 0; 7000.e3]];
er = CL_dataGet("eqRad");
mu = CL_dataGet("mu");
j1jn =  CL_dataGet("j1jn");
znm = [1; 0; -j1jn(2)];
CL_sphHarmVal(pos, er, mu, znm)

Report an issue
<< CL_sphHarmGrad Math CL_stat >>