Skip to content

Latest commit

 

History

History
78 lines (39 loc) · 1.32 KB

shpowerspectrumdensity.pod

File metadata and controls

78 lines (39 loc) · 1.32 KB

SHPowerSpectrumDensity

SHPowerSpectrumDensity -

Compute the power spectral density of a real function.

SYNOPSIS

SUBROUTINE SHPowerSpectrumDensity (

C, LMAX, SPECTRUM )

    REAL*8

    C(2, LMAX+1, LMAX+1), SPECTRUM(LMAX+1)

    INTEGER

    LMAX

DESCRIPTION

SHPowerSpectrumDensity will calculate the power spectral density of a function expressed in real spherical harmonics. For a given degree L, this is explicitly calculated as:

Sum_{i=1}^2 Sum_{m=0}^L C(i, L+1, m+1)**2 / (2L + 1).

ARGUMENTS

C

(input) REAL*8, DIMENSION (2, LMAX+1, LMAX+1)

The function expressed in real spherical harmonics.

LMAX

(input) INTEGER

The maximum spherical harmonic degree to calculate the power spectral density.

SPECTRUM

(output) REAL*8, DIMENSION (LMAX+1)

The power spectral density of the function.

SEE ALSO

shpowerl(1), shpowerdensityl(1), shcrosspowerl(1), shcrosspowerdensityl(1), shpowerspectrum(1), shcrosspowerspectrum(1), shcrosspowerspectrumdensity(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.