<< CL_rMod Math CL_sphHarmVal >>

CelestLab >> Math > CL_sphHarmGrad

CL_sphHarmGrad

Spherical harmonics - gradient

Calling Sequence

gr = CL_sphHarmGrad(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.

gr :

Gradient (3xN)

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_sphHarmGrad(pos, er, mu, znm)

Report an issue
<< CL_rMod Math CL_sphHarmVal >>