Skip to content

Latest commit

 

History

History
77 lines (38 loc) · 1.58 KB

shcilmtocindex.pod

File metadata and controls

77 lines (38 loc) · 1.58 KB

SHCilmToCindex

SHCilmToCindex -

Convert a three-dimensional array of complex spherical harmonic coefficients to a two-dimensional indexed array.

SYNOPSIS

SUBROUTINE SHCilmToCindex (

CILM, CINDEX, DEGMAX )

    REAL*8

    CILM(2, *, *), CINDEX(2, *)

    INTEGER, OPTIONAL

    DEGMAX

DESCRIPTION

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.

ARGUMENTS

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.

SEE ALSO

shctor(1), shrtoc(1), shcindextocilm(1)

http://shtools.ipgp.fr/

COPYRIGHT AND LICENSE

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.