Subclasses |
SHRealCoeffs |
Real spherical harmonic coefficient class. |
SHComplexCoeffs |
Complex spherical harmonic coefficient class. |
Initialization |
x = SHCoeffs.from_array() |
Initialize using coefficients from an array. |
x = SHCoeffs.from_random() |
Initialize using random coefficients with a prescribed power spectrum. |
x = SHCoeffs.from_zeros() |
Initialize with coefficients set to zero. |
x = SHCoeffs.from_file() |
Initialize using coefficients from a file. |
Class attributes |
lmax |
The maximum spherical harmonic degree of the coefficients. |
coeffs |
The raw coefficients with the specified normalization and phase conventions. |
normalization |
The normalization of the coefficients: '4pi', 'ortho', or 'schmidt'. |
csphase |
Defines whether the Condon-Shortley phase is used (1) or not (-1). |
mask |
A boolean mask that is True for the permissible values of degree l and order m. |
kind |
The coefficient data type: either 'complex' or 'real'. |
Class methods |
get_degrees() |
Return an array listing the spherical harmonic degrees from 0 to lmax. |
get_powerperdegree() |
Return an array with the power per degree spectrum. |
get_powerperband() |
Return an array with the power per logbandwidth spectrum. |
get_coeffs() |
Return an array of spherical harmonics coefficients with a different normalization convention. |
set_coeffs() |
Set coefficients in-place to specified values. |
rotate() |
Rotate the coordinate system used to express the spherical harmonics coefficients and return a new class instance. |
return_coeffs() |
Return the current class instance as a new instance using a different normalization convention. |
expand() |
Evaluate the coefficients on a spherical grid and return a new SHGrid class instance. |
make_complex() |
Convert a complex SHCoeffs class instance to a real class instance. |
make_real() |
Convert a real SHCoeffs class instance to a complex class instance. |
plot_powerperdegree() |
Plot the power per degree spectrum. |
plot_powerperband() |
Plot the power per logbandwidth(degree) spectrum. |
info() |
Print a summary of the data stored in the SHCoeffs instance. |
copy() |
Return a copy of the class instance. |
tofile() |
Save raw spherical harmonic coefficientsto a text or binary file. |