HOME | DOWNLOAD | DOCUMENTATION | FAQ |
> Home > Documentation > Python > Spherical Harmonic Transformations
SHMultiply
Multiply two functions and determine the spherical harmonic coefficients of the resulting function.
Usage
shout
= pyshtools.SHMultiply (sh1
, lmax1
, sh2
, lmax2
, [norm
, csphase
])
Returns
shout
: float, dimension (2,lmax1
+lmax2
+1,lmax1
+lmax2
+1)- The real spherical harmonic coefficients corresponding to the multiplication of
sh1
andsh2
in the space domain.
Parameters
sh1
: float, dimension (2,lmax1in
+1,lmax1in
+1)- The spherical harmonic coefficients of the first function.
lmax1
: integer- The maximum spherical harmonic degree used in evaluting
sh1
. sh2
: float, dimension (2,lmax2in
+1,lmax2in
+1)- The spherical harmonic coefficients of the second function.
lmax2
: integer- The maximum spherical harmonic degree used in evaluting
sh2
. norm
: optional, integer, default = 1- 1 (default) = Geodesy 4-pi normalized harmonics; 2 = Schmidt semi-normalized harmonics; 3 = unnormalized harmonics; 4 = orthonormal harmonics.
csphase
: optional, integer, default = 1- 1 (default) = do not apply the Condon-Shortley phase factor to the associated Legendre functions; -1 = append the Condon-Shortley phase factor of (-1)^m to the associated Legendre functions.
Description
SHMultiply
will take two sets of spherical harmonic coefficients, multiply the functions in the space domain, and expand the resulting field in spherical harmonics using SHExpandGLQ
. The spherical harmonic bandwidth of the resulting field is lmax1+lmax2
, where lmax1
and lmax2
are the bandwidths of the input fields.
The employed spherical harmonic normalization and Condon-Shortley phase convention can be set by the optional arguments norm
and csphase
; if not set, the default is to use geodesy 4-pi normalized harmonics that exclude the Condon-Shortley phase of (-1)^m.
See also
shexpandglq, makegridglq, shglq
> Home > Documentation > Python > Spherical Harmonic Transformations
Institut de Physique du Globe de Paris | University of Sorbonne Paris Cité | © 2016 SHTOOLS |