SynthesisSphericalHarmonicsMatrix

This program builds a linear operator matrix for spherical harmonic analysis or synthesis based on the points defined in grid. Depending on the chosen type (synthesis, quadrature, or leastSquares), the resulting matrix can be used to:

he spherical harmonic degree range is constrained by minDegree and maxDegree, and the ordering of the coefficients is given by numbering. The reference gravitational constant is GM, and the reference radius is R.

The computed matrix is written to outputfileMatrix with dimensions (number of grid points) $\times$ (number of spherical harmonic coefficients). For type = leastSquares, the program applies a QR-based pseudo-inverse so that the output matrix can directly form the normal-equation building blocks for a blockwise least-squares solution in spherical harmonic space.

See also Gravityfield2GriddedData, GriddedData2PotentialCoefficients, Gravityfield2SphericalHarmonicsVector, and MatrixCalculate for additional tools to convert between grids and spherical harmonics.

NameTypeAnnotation
outputfileMatrix
filename
grid
grid
kernel
kernel
minDegree
uint
maxDegree
uint
GM
doubleGeocentric gravitational constant
R
doublereference radius
numbering
sphericalHarmonicsNumberingnumbering scheme of sh coefficients
type
choice
synthesis
synthesize spherical harmonics on a grid
quadrature
calculate spherical harmonics from grid
leastSquares
estimated spherical harmonics from grid
This program is parallelized.