Skip to content

Latest commit

 

History

History
84 lines (42 loc) · 1.6 KB

shcrosspowerspectrumdensityc.pod

File metadata and controls

84 lines (42 loc) · 1.6 KB

SHCrossPowerSpectrumDensityC

SHCrossPowerSpectrumDensityC -

Compute the cross-power spectral density of two complex functions.

SYNOPSIS

SUBROUTINE SHCrossPowerSpectrumDensityC (

C1, C2, LMAX, CSPECTRUM )

    COMPLEX*16

    C1(2, LMAX+1, LMAX+1), C2(2, LMAX+1, LMAX+1), CSPECTRUM(LMAX+1)

    INTEGER

    LMAX

DESCRIPTION

SHCrossPowerSpectrumDensityC will calculate the cross-power spectral density of two functions expressed in complex spherical harmonics. For a given degree L, this is explicitly calculated as:

Sum_{i=1}^2 Sum_{m=0}^L C1(i, L+1, m+1) * conjg[C2(i, L+1, m+1)] / (2L + 1).

ARGUMENTS

C1

(input) COMPLEX*16, DIMENSION (2, LMAX+1, LMAX+1)

The first function expressed in complex spherical harmonics.

C2

(input) COMPLEX*16, DIMENSION (2, LMAX+1, LMAX+1)

The second function expressed in complex spherical harmonics.

LMAX

(input) INTEGER

The maximum spherical harmonic degree for which the cross power spectral density will be calculated.

CSPECTRUM

(output) COMPLEX*16, DIMENSION (LMAX+1)

The cross-power spectral density of the two complex functions.

SEE ALSO

shpowerlc(1), shpowerdensitylc(1), shcrosspowerc(1), shcrosspowerdensitylc(1), shpowerspectrumc(1), shpowerspectrumdensityc(1), shcrosspowerspectrumc(1), shadmitcorr(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.