SphericalHarmonicsNumbering

This class organizes the numbering scheme of spherical harmonics coefficients in a parameter vector (e.g Gravityfield2SphericalHarmonicsVector and the design matrix of parametrizationGravity:sphericalHarmoncis.

Degree

Numbering degree by degree: \[ c20, c21, s21, c22, s22, c30, c31, s31, c32, s32,\ldots \]

Order

Numbering order by order: \[ c20, c30, c40, \ldots, c21, s21, c31, s31, \ldots, c22, s22 \]

OrderNonAlternating

Numbering order by order with cnm, snm non-alternating: \[ c20, c30, c40, \ldots, c21, c31, c41, \ldots, s21, s31, s41, \]

File

Numbering as specified in the chosen file. The inputfile is a matrix with the first column indicating cnm/snm with 0 or 1. The second and third column specify degree and order.

NameTypeAnnotation
inputfile
filename