Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.38 KB

pyshcrosspowerspectrumc.md

File metadata and controls

33 lines (19 loc) · 1.38 KB

SHCrossPowerSpectrumC

Compute the cross-power spectrum of two complex functions.

Usage

cspectrum = pyshtools.SHCrossPowerSpectrumC (cilm1, cilm2, [lmax])

Returns

cspectrum : complex, dimension (lmax+1) : The cross-power spectrum of the two complex functions.

Parameters

cilm1 : complex, dimension (2, lmaxin1+1, lmaxin1+1) : The complex spherical harmonics of the first complex function.

cilm2 : complex, dimension (2, lmaxin2+1, lmaxin2+1) : The complex spherical harmonics of the second complex function.

lmax : optional, integer, default = min(lmaxin1, lmaxin2) : The maximum spherical harmonic degree of the cross power spectrum. This must be less than or equal to the minimum of lmaxin1 and lmaxin2.

Description

SHCrossPowerSpectrumC will calculate the cross-power spectrum of two complex functions expressed in complex spherical harmonics. For a given spherical harmonic degree l, this is calculated as:

cspectrum(l) = Sum_{i=0}^1 Sum_{m=0}^l cilm1[i, l, m] * conjg[cilm2[i, l, m]].

See also

shpowerlc, shpowerdensitylc, shcrosspowerlc, shcrosspowerdensitylc, shpowerspectrumc, shpowerspectrumdensityc, shcrosspowerspectrumdensityc