- SHCilmToCindex -
-
Convert a three-dimensional array of complex spherical harmonic coefficients to a two-dimensional indexed array.
- SUBROUTINE SHCilmToCindex (
-
CILM, CINDEX, DEGMAX )
- REAL*8
-
CILM(2, *, *), CINDEX(2, *)
- INTEGER, OPTIONAL
-
DEGMAX
SHCilmToCindex will convert a three-dimensional array of complex spherical harmonic coefficients to a two-dimensional indexed array. The degree L and order M corresponds to the index L*(L+1)/2+M+1. The default is to convert the entire array CILM, but a subset of this array can be converted by specifying the optional argument DEGMAX.
- CILM
-
(input) REAL*8, DIMENSION (2, *, *)
The input complex spherical harmonic coefficients. CILM(1, *, *) and CILM(2, *, *) correspond to the real and imaginary components, respectively.
- CINDEX
-
(output) REAL*8, DIMENSION (2, *)
The indexed output complex spherical harmonic coefficients. The second dimension of this array must be greater than (LMAX+1)*(LMAX+2)/2 where LMAX is the maximum degree of CILM.
- DEGMAX
-
(input) INTEGER, OPTIONAL
The maximum degree of the output coefficients. By default, the entire array CCILM will be converted.
shctor(1), shrtoc(1), shcindextocilm(1)
Copyright 2012 by Mark Wieczorek <wieczor@ipgp.fr>.
This is free software; you can distribute and modify it under the terms of the revised BSD license.