Convert a three-dimensional array of real spherical harmonic coefficients to a 1-dimensional indexed vector.
vector
= SHCilmToVector (cilm
, [lmax
])
vector
: float, dimension ( (lmax
+1)**2 )
: The indexed output real spherical harmonic coefficients.
cilm
: float, dimension (2, lmaxin
+1, lmaxin
+1)
: The input real spherical harmonic coefficients.
lmax
: optional, integer, default = lmaxin
: The maximum degree of the output coefficients to convert.
SHCilmToVector
will convert a three-dimensional array of real spherical harmonic coefficients to a 1-dimensional indexed array. The degree l
, order m
, and i
(1 for cosine, 2 for sine) corresponds to the index l**2+(i-1)*l+m
.
shvectortocilm, yilmindexvector, shcindextocilm, shcilmtocindex